Questions tagged [automated-tests]

Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions. Commonly, test automation involves automating a manual process already in place that uses a formalized testing process (wikipedia.org).

As per wikipedia.org:

Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions. Commonly, test automation involves automating a manual process already in place that uses a formalized testing process.

There are two general approaches to test automation:

Code-driven testing. The public (usually) interfaces to classes, modules or libraries are tested with a variety of input arguments to validate that the results that are returned are correct.

Graphical user interface testing. A testing framework generates user interface events such as keystrokes and mouse clicks, and observes the changes that result in the user interface, to validate that the observable behavior of the program is correct.

The principle of automated testing is that there is a program (which could be a job stream) that runs the program being tested, feeding it the proper input, and checking the output against the output that was expected. Once the test suite is written, no human intervention is needed, either to run the program or to look to see if it worked; the test suite does all that, and somehow indicates whether the program's output was as expected.

Test Automation also has dedicated section in Software QA & Testing community.

13134 questions
4
votes
3 answers

Does anyone use Sikuli as a testing tool?

Hi I have a Swing application to test and I found Sikuli a nice tool to do it, but I am a little worried about the size of the community and if it's being continually developed and it's being used by other companies. Do you use it? For what? Is it…
Cristiano Fontes
  • 4,920
  • 6
  • 43
  • 76
4
votes
7 answers

How to create structured automatic testing with selenium (junit or testng)? What is your best practice for this?

I have written tests that are using selenium for functional testing. I'm using Java. I would like to be able to create structure between tests. Is it possible to do it with jUnit or TestNG? Would like to be able to create test structure that will…
Urszula Karzelek
  • 556
  • 6
  • 15
4
votes
2 answers

jUnit: Generic test class - setting test name to something else than class/method name?

I have a project testsuite with a set of files which I want to use as a testsuite - one test per file. But the number of tests will go to hundreds, and each tests is the same: Parse the file and check the output. Maintaining a method per each file…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
4
votes
3 answers

How can I get a consistent result on running Selenium Webdriver (Java) test cases?

I want a consistent output when running Selenium WebDriver test cases. I have more than 30 test cases in a java class. When I run it i'm getting errors in different methods. For eg. Some times it fails in the 12th test case, some times in 8th, some…
Gnik
  • 7,120
  • 20
  • 79
  • 129
4
votes
1 answer

How to write unit/integration tests in python with rabbitmq?

I have a python project written using rabbitmq, and I'm wondering how I should write unit tests for it/what are best practices. Since the code requires a rabbitmq server to be running in the background these are the three options I've come up…
Jon Chu
  • 1,877
  • 2
  • 20
  • 19
4
votes
3 answers

Testing my simple WPF application

I am wishing to teach myself how to effectively test using VS2010 and C# for an upcoming interview. Any resources on learning this would be greatly appreciated (especially a quick and dirty "here is how you create a test project/run it/make…
Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
4
votes
1 answer

Automated user interface testing in Titanium

How can I create automated user interface tests for a Titanium app? Does the framework include something for this? Are there any helpful third party tools?
alf
  • 18,372
  • 10
  • 61
  • 92
4
votes
6 answers

How can I automatically validate that I have an HTML Id on every element?

The testers on my project want a unique HTML ID on every page element to make their automated testing easier. It's hard for me to remember to do this, because I don't need the IDs for development. How can I ensure that I don't forget? I thought…
Daniel Alexiuc
  • 13,078
  • 9
  • 58
  • 73
4
votes
1 answer

Using Instruments to test an iOS app without having source code to the application

I would like to use UIAutomation via Instruments in Xcode to test an app on my iOS device. Is it possible to do so without having to build the source code? The reason for this is that our team will have testers who will be writing automation scripts…
imanoob
  • 53
  • 4
4
votes
2 answers

Sonar how to run unit test successfully

I have a project built with maven and I recently integrated Sonar... It is really easy to configure Sonar to analyze you're project but I couldn't configure it to run my project unit test also. I tried something with Jacoco but I get some Seam error…
spauny
  • 4,976
  • 9
  • 44
  • 61
4
votes
3 answers

Web Testing tool for GWT?

I am looking for an open Source Test Automation Tool for an application developed with GWT. this tool should allow: Scenarios recording Maintenance of scenarios (binary files, XML, ..) The integration into the build tool (Ant) I know that Selenium…
user405458
  • 1,107
  • 3
  • 24
  • 38
4
votes
2 answers

selenium and web automation test: how to run large volumn stress tests

I am using selenium and firefox webdriver to test my website, it works well. The only problem is with the computing resource restrictions, I can only run 10 browsers simultaneously in one physical machine, which is not enough for our testing…
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
4
votes
1 answer

casperjs : Can we organize test suites like phpunit for example "allTests"

I would like to organize my test suites like phpunit A script which add all the tests found elsewhere in the same project
4
votes
2 answers

Extracting value from select element in HTML using XPath Query in JMeter

I want to extract the first value which has the property selected = "selected" using XPath extractor. But it doesn't seem to work for me. The html which i'm extracting the value from is: < select id="ddLocation" name="ddLocation" class="DDlocation"…
Abhijeet Vaikar
  • 1,578
  • 4
  • 27
  • 50
4
votes
1 answer

Automated testing of a WebStart program using ABBOT & COSTELLO

I have a tricky one here. We have this huge Desktop-like WebStart application in our company and now we are trying to create automated tests for it. Since our applications GUI is not fully implemented using Swing or AWT we have trouble to test it…
de.la.ru
  • 2,994
  • 1
  • 27
  • 32