Automated test for Windev - automated-tests

I'm trying to automate some manual test on a Windev windows application. I have tried with QTP 11, QTP can recognize the objects but for some of them like Combobox, Winlist, QTP cannot do any actions. So I would like to know if there is other tools could do the automated test.
Thanks a lot in advance
Allen

You could try to use Coded UI Test Recorder, which is a built-in feature of Visual Studio 2010 Ultimate Edition.
BTW, You should try to use Microsoft Spy++ to Inspect the elements of the win form. If the elements could be recognized and inspected by Microsoft Spy++, you could use White or some other automated testing framework to handle them directly...

WINDEV has an automated testing function built into the softare. It can be a record and playback or coded for testing your application. Parameter driven testing also is available. I've used it with my WINDEV applications. A good feature is if you port the applicatin to WEBDEV (web site use) the testing can be reused. OR have you tried TESTCOMPLETE? Interesting product for automated testing.

Related

QTP Writing test on Win32 app ObjectSpy not finding object id

I am experienced writing automation tests for web apps using Selenium.
However I now have to automate a Windows Desktop app which I'm new to.
I'm using QTP 11 (old version) and I can get QTP to login type username/password to the desktop app. However when the app loads there are icons like a Windows desktop. I tried using ObjectSpy on the Actions folder icon but it can't find the object ID and it thinks the icon is a WinObject("COMPOSITE")
Also tried using QTP Record feature but the code that it generates uses hardcoded x and y values. I don't want to use x,y values as if the Actions icon moves 3cms left or right in future the test will fail.
e.g.
Window("Loan IQ").WinObject("COMPOSITE").Click 369,33
Need help finding the object ID in a Win32 app. Thanks
First of all you should make sure that UFT is configured to test your application. In the Record and Run Settings dialog, make sure that either _any windows application__ is selected or your app is explicitly listed.
If this doesn't improve the situation you can try using image based testing (aka Insight).
WIN32 Apps can be a nightmare to automate especially with QTP 11, as it is a kinda outdated version. If you want to get stable automation I propose the following:
Upgrade to a newer version of UFT (14+)
This will most probably not help you indentify the objects but will have a lot of new technologies supported that may help you as described in the following steps
Use Image Based Recognition
Even if your screen resolution changes UFT is still able to identify pictures.IT does not use absolute vectors to compare bitmaps but a different technology which I won't go in detailed (long story short, screen resolution changes are okay)
Provide support for your Widgets
Microsoft has 2 frameworks that can be used to provide UI Automation capabilities (initially for people with accessibility needs, but now is used for RPA and GUI Testing). UFT supports the MSAA and UIA frameworks of Microsoft so if your company is ready to implement support for the UI widgets via one of these Technologies, you are on your way for a smooth Test Automation Experience. Please note: This is mostly a huge investment, so if the tool is something internal and not planned for longer term usage, go with the image based Recognition

QtWebDriver for automation testing of Qt application

I faced with task to write test automation framework for Qt desktop application. I found one interesting open source solution - QtWebDriver.
Did some from you work with this tool?
What can you say about it? Or it'll be better to use commercial solution (e.g. Squish or Testcomplete)
One thing to take into account besides free/commercial aspects is integration with existing (open source) tools.
QtWebdriver integrates with Selenium, which is the de-facto standard for web automation.
This means:
If you have existing selenium tests you should be able to reuse them
You can also use selenium+QtWebdriver tests to automate qml/qwidgets
apps
You can benefit support from online selenium community as well

simulate virtual users interacting with my .NET Winform or ASP.NET application?

Microsoft release a product named - Visual Studio Load Test Virtual User Pack 2010 to do that.
However, it cost USD$4,799.
So,is it other free or commercial tool can do simulate jobs?
At now, my solution is :
Winform :
3 x virtualbox + WinXP with some macro software.
ASP.NET
3 x virtualbox + WinXP + Firefox and iMacro
selenium is a great tool, but i have and still do prefer watin. Simply because I prefer writing the tests to recording. but that's just me.
you could try a user interaction tester such as selenium
http://seleniumhq.org/
http://www.loadtestingtool.com/ is an example. It records your navigation in web pages and reproduces it anytime you want. You can configure a lot of parameters to simulate paralel accesses.

A good UI Unit Testing solution suitable for ASP.NET development (browser UI compatible)?

does anyone know of a good automated UI Unit Testing solution suitable for ASP.NET development (Browser UI compatible)?
Would be interested in learning it if so. NUnit integration / compatibility would be a bonus.
We use selenium and are happy with it. It supports nUnit. Here is a good write up
It does not support silverlight which is a downside for us.
MSTest - Part of Visual Studio 2008 Test Edition and Ultimate. Also part of Visual Studio 2010 Premium and Ultimate. Supports easy recording and playback, stable but has a learning code for manual test code editing.
Selenium - As suggested earlier. Surprisingly well done, especially in Firefox. Open-sourced, written in Java. Recorder is a Firefox plugin only and we never got recorded tests to work with IE. That was a problem for us because the test creators weren't coders so had to rely on recording tests. But there is a major version about to be released.
Watin - Open source. Written in C#. Less development than Salenium but still has a solid list of features.

Automated testing of FLEX based applications

What tools, preferably open source, are recommended for driving an automated test suite on a FLEX based web application? The same tool also having built in capabilities to drive Web Services would be nice.
Adobe distributes a test framework themselves: FlexUnit.
I heard of people using selenium as a free/open source testing tool. A quick google revealed a FLEX API for it. Not sure if it works or is still in development, but it may be worth a look.
http://sourceforge.net/projects/seleniumflexapi/
Are you looking to script code-level unit tests? If so, dpuint is the bomb: http://code.google.com/p/dpuint/ . This library makes it really easy to do automated testing on all sorts of asynchronous events, on either non-visual ActionScript objects or visual components. They also have a nice multi-page tutorial on the Google Code project page.
If you are looking for functional testing tools along the lines of automated record-and-playback simulating an end user using a Flex app, HP's QuickTest Pro is the Adobe-endorsed solution. It works great, but costs about $4,000 - $6,000 per seat.
Check out FlexMonkey. It does automated testing via FlexUnit tests.
Try looking at Melomel. It has Cucumber support baked right in and comes packaged with steps for most Halo and Spark components.
http://melomel.info
There's an automated test tool called RIATest that might fit the bill for you.
Unfortunately only for Windows, and not open source, but if it does the job it might be well worth the price ($399 at time of writing).
FunFX is an option for automating UI testing. I haven't used it extensively, but I've heard of some having success with it. Here is the article where I first learned about it.
I've been extensively using FunFX for several months now on a Flex 3 + Rails project. Not only is it open source, it's also written in Ruby, so integration with web services should be fairly easy. There are a few screencasts out there covering the basics.
The Flex code that your Flex app needs is contained in the SeleniumFlexAPI distribution .swc file, SeleniumFlexAPI.swc. Just include this file as a library when you compile your Flex app.
Sikuli is good tool which can be used to test flex/flash based web applications.
-It can automate anything on graphical user interface.
-It works on Windows, MAC OSX and Linux as well as iPhone and Android.
-Here is the Sikuli link
My preferred tool is Selenium Remote Control. There is a plug-in I discovered a few months ago:
http://code.google.com/p/flash-selenium/
This required 'hooks' to be written on the server side (ActionScript/Flex). Once they were added, I was able to do some browser testing using Selenium RC.
FunFX is great. We've used it extensively and have been very happy with it. The community is also active and very responsive, so that is a big plus for me.
The new version of the Selenium-Flex API (0.2.5) works great.

Resources