I have created a user interface using GTK+ and C. I was wondering if there are any testing frameworks for testing this interface, similar to how selenium (a software testing framework for web applications) can be used for testing the interfaces of web applications. I want to create some regression tests for my GTK+ interface. Thanks!
I know it has been answered already. However ...
Dogtail is very usefull, however Dogtail isn't a unittest framework. From it's own description:
dogtail is a GUI test tool and automation framework written in ​Python. It uses Accessibility (a11y) technologies to communicate with desktop applications. dogtail scripts are written in Python and executed like any other Python program.
If you want to unit test your GTK applications you should look at GLIB TESTING. A unit testing framework for GLIB written in C for C applications.
Check out dogtail.
Related
I have doubts on how to implement test automation in the company where I am currently. I was wondering what workflow do you suggest?
The project I will be working on uses, on its back-end, the Java language. At first, I want to propose the use of Selenium Webdriver with Java, but some gaps remain:
How would I integrate with problem tracking tools? (Mantis or Jira)
A team member suggested using Python with Selenium Webdriver, is it interesting? (I am afraid)
When developers are committed to the QA environment, how would I do automated testing automatically?
Thank you in advance for your help!
With the evolution of AUT (Application under Test) the project is sure to scale up vertically and horizontally. Hence to maintain a healthy Test Coverage you have to set up an Automation Test Suite to validate the Regression Tests.
Mantis and Jira both can be integrated using either of the Selenium clients Java and Python on demand.
While for Java clients testng is a popular framework, for Python clients you can use the unittest framework.
I am performing an automation testing, and I have two applications. one is web application and the other is desktop application (WPF). They work together and one needs the other. To perform task on the desktop application the task should be finished first by the web application. I can do automation testing for the web application using Selenium or Protractor. At the same time I I can do automation testing for the Desktop application using Winium. But what I want is to perform automation for both sequentially. Is there any solution some one can provide me?
For your information my web application is developed using Angular JS.
Thank you in advance
Below is how I have configured my tests. I choose C# as the programming language. Selenium has .Net bindings so for UI interaction I use Selenium (C#). For Desktop App I am using FlaUI / (TestStack.White). My tests are written in SpecFlow (BDD's implementation in .Net). So that way I am able to test all of my apps under one umbrella and still use all of the open source technology for testing.
You can use following Tools : By using following tools you can interact with both Desktop and Web Component in a Single Test
Tosca :
It also supports Desktop and Web Automation. It's Community edition is FREE.
Refer Tosca
Ranorex
It supports Desktop, Web And Mobile as well. It is paid tool.
Refer Ranorex
TestComplete
It is an automated testing tool that lets you create, manage and run tests for any Windows, Web or Rich Client software. It makes it easy for anyone to create automated tests. And automated tests run faster, increase test coverage and lower costs. It is paid tool.
Refer Test Complete
I am a newbie in Automation testing and have recently started learning selenium.
We have a Oracle PL/SQL Web tool kit based application. The Interface is used in Internet explorer.
I wanted to know if this UI can be automated with Selenium?
Thanks
Absolutely!
Generally speaking it does not really matter, what toolkit you use when testing with Selenium.
We also have a mod_plsql based application and use Selenium for our UI and integration tests.
The important decision is what environment and language to use when writing the tests. We started by using the Python bindings (https://selenium-python.readthedocs.org/en/latest/index.html) but now moved to the JavaScript WebDriverJS (https://code.google.com/p/selenium/wiki/WebDriverJs) running on NodeJS. The hard think with JavaScript that not only the tests are async but the driver itself as well.
I would start with the language you feel most comfortable with.
... and good luck: it's quite a challenge to write good tests in Selenium!
I want to build a rather complicated GUI app on the .Net framework. The app will have the following graphical capabilities:
Plotting/updating realtime data
Allow manual (using mouse) drawing/dragging/editing of lines etc on a plot
Allow selecting of graphical objects/shapes on a plot and drag/drirop to a new location on the plot
Ideally, I would like to use VS to do my initial development, because the VSIDE is (understandably) much more sophisticated than the monodevelop tools. However, I will be running the application and maintaining the codebase (once the development phase is completed), on Linux, using monodevelop.
It is important for this reason, that I make sure that I do not use any .Net components that have not yet been ported over to mono.
Given the graphical functional requirements above, I would like to know if I can expect to be able to develop such an app on Windows and then port to monodevelop?.
I am aware that components like WPF have not been ported to mono, so are there any other .Net GUI components (available on mono) that I can use in my application (to make the port possible)?
From a past experience start with a Windows Forms plain app. If you want the port to be as clean as possible forget about complex UI components, you can always use your custom controls but check third-party ones you use don't call Win32 API directly. That you can do it within Visual Studio (check this plugin for more productivity) but I want to warn you about two things:
Interfaces built with Visual Studio (WinForms) when running on Linux look awful.
If you want a clean UI take a look at Gtk#
Our team is using Silverlight 5 for development as it has features we require going forward. I have discovered that NUnit doesn't work as standard as it isn't Silverlight and that the tools available for Silverlight testing appear to primarily be aimed at running within browsers and are a pain to automate it seems.
However a lot of the code I want to test is the View Models which aren't specifically Silverlight, so I was hoping there is a way of using NUnit or similar to just test this and integrating into a build server (which is currently being decided upon)
So, is it possible to test Silverlight in this way?
I haven't tried it but looks interesting:
http://statlight.codeplex.com/
and what about third parties (maybe Telerik offers something on their testing suite).
I know it's no ideal, but if it's just VM and non dependant on UI you can link the files to a WPF project and execute the unit tests (in our case we had to share two versions the SL and the WPF one that's why we chose to test our VM in the WPF version :-)).
The unit testing from Silverlight (toolkit) I haven't found a way to link it to an automated build process
The best solution I have found is AgUnit:
http://agunit.codeplex.com/
AgUnit is an open source plugin for ReSharper. This solution of course assumes that you're using ReSharper. AgUnit allows you to run Silverlight unit tests in the ReSharper test running. Unfortunately, I just checked the AgUnit site and it looks like they only support Silverlight 5. You may want to head over there and find out about their plans for supporting Silverlight 5 though as it is a great plugin.
Prior to using AgUnit, we were using Statlight and found it to be pretty good as well, just not quite as convenient as AgUnit.