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

Automate CentOS installation with VMware for testing

Is is possible to automate the installation of an OS using VMware or any other virtualization product? One of our products consists of a customized version of CentOS that installs the OS and our application on a server. It's much like any…
Jason Luther
  • 163
  • 1
  • 8
4
votes
1 answer

Capture script-generated mailto URI

Summary: I'm doing some automation testing for a webapp (using Selenium), and I'm trying to capture a mailto:link (specifically one of its query parameters) that gets generated by javascript during an onclick event. Currently the only way I can…
JKing
  • 807
  • 5
  • 14
4
votes
1 answer

Where to store automated tests in source control

My company recently started getting up to date on the usage of TFS, source control, and branching strategies. Our current branching strategy is the basic 'Dev > Main > Release' method, which works well for our small team. However, the issue lies…
Brian
  • 467
  • 3
  • 7
  • 10
4
votes
1 answer

Turn off built-in rss reader in Firefox 13

A couple of years ago, I designed a bunch of automatic tests for a webapplication using Molybdenum. Some of these checked the data showed in a rss feed through an xml parser. The test required the browser to show the rss as a simple xml file. At…
Davide Melfi
  • 250
  • 2
  • 12
4
votes
3 answers

Sauce Labs alternative

We're looking into automating our web UI using either Microsoft's coded UI tests or Telerik TestStudio framework. I would love to run our tests using a service like Sauce Labs however, Sauce Labs requires Selenium tests. Is anyone aware of some…
dalcantara
  • 1,613
  • 2
  • 21
  • 35
4
votes
3 answers

Firefox 12.0 and Selenium 2 : Native Events are not supported

When running Selenium 2.21.0 build using the webdriver, I get the following error when running against Firefox 12.0 : org.openqa.selenium.InvalidElementStateException: Cannot perform native interaction: Could not load native events…
theCesspit
  • 185
  • 3
  • 10
4
votes
2 answers

How do you create automated tests of a Maven plugin using JUnit?

I've got a (mostly) working plugin developed, but since its function is directly related to the project it processes, how do you develop unit and integration tests for the plugin. The best idea I've had is to create an integration test project for…
Steve Moyer
  • 5,663
  • 1
  • 24
  • 34
4
votes
3 answers

using powershell to click a link on a web page and then pass credentials

I am trying to test our a web page we built that has a temp ssl cert, the issue is that when I goto the page I get the IE security warning that the ssl cert is invalid, with two links one to close the page, and the other to proceed to the page. I…
digitalslavery
  • 75
  • 1
  • 4
  • 13
4
votes
4 answers

Easiest way to bulk copy similar Jenkins jobs

Is there any easier way to bulk copy Jenkins jobs? Basically what I want to do is copy all jobs from a particular view to another view and change a couple of parameters to different values. For example I have a view call Host_1_Test_Jobs. All jobs…
Brian T.
  • 161
  • 1
  • 2
  • 7
4
votes
1 answer

How can I "deserialize" an HTML table data into a bi-dimensional array?

I need to perform data validation of two tables using Selenium. Given a properly marked-up HTML table filled with data: …
John Doe
  • 4,574
  • 2
  • 26
  • 30
3
votes
2 answers

Is it possible to merge UI Controls on MS Coded UI Tests?

Edit: Since my question was too long, and touched a lot of different points, I decided to brake it down into smaller and more specific questions. I am using Coded UI tests to run automated, however I realized UIMap generates the exact same element…
João Louros
  • 2,752
  • 4
  • 23
  • 30
3
votes
2 answers

Automatic simulate user inputs for testing forms?

I usually made php forms and "try" to use "good practices" in them. I'm concerned about the real safety and error-free of that forms and I want to do some tests simulating the customer behavior, and I do it manually, but I find that is a hard work…
Memochipan
  • 3,405
  • 5
  • 35
  • 60
3
votes
1 answer

Xpath validation fails on automated test with maven / soap-ui plugin

We are using Soap-UI for writing some web-services tests. I put this XPath validation in one of them: count(//mynode) > 1 This is working fine while executing from SOAP-UI software, but when the continuous integration (jenkins) execute it through…
рüффп
  • 5,172
  • 34
  • 67
  • 113
3
votes
1 answer

How to throw an exception when JSON does not deserialize into my object

I am writing test automation against a RESTful web service (JSON payload) in .NET and would like to validate that the objects sent to me have exactly the fields in a DTO I define, not more or less. However, it seems that the serialization method I…
Callagan
  • 35
  • 7
3
votes
5 answers

How To Ensure an @Test Method Always Runs Before Any Others Regardless of Class, Suite or Group?

My reading of the TestNG docs suggests that if I have a test method marked like this: @BeforeSuite(alwaysRun = true) @Test public void MyTestMethod { ... } then MyTestMethod would run before any other test defined anywhere, regardless of…
Randall Schulz
  • 26,420
  • 4
  • 61
  • 81
A B C