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
15
votes
7 answers

Unable to find element on closed window on IE 11 with Selenium

I'm trying to run tests on Internet Explorer 11 working with Selenium WebDriver. The code is: System.setProperty("webdriver.ie.driver", "Path/to//IEDriverServer.exe"); WebDriver driver = new…
15
votes
7 answers

How to automate testing of a browser-based app?

If it were a windows program, I would use Auto it to automate testing. Is there something similar for browser-based apps? Nothing too complex, it should just allow scripting (preferable for me to macro-recording) to simulate human interaction with…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
15
votes
4 answers

In Specflow can I run one test as a step of another?

TL;DR; How can I create a specflow test that calls another test as its first step? Given I already have one specflow test And I want to run another test that goes deeper than the first test Then I create a second test that runs the first test as…
JK.
  • 21,477
  • 35
  • 135
  • 214
15
votes
1 answer

How to automate upgrade testing for android

We have been using espresso for android automation, and that includes upgrade testing For upgrade testing, we need to perform 3 steps: Make some actions in the old version to prepare some data Upgrade to new version (cover install) Check the data…
Sugre
  • 851
  • 2
  • 9
  • 19
15
votes
4 answers

Test runners for AngularJS - how to run the tests from eclipse IDE and CI server without too much complication?

I am trying to figure out a simple way to run tests on angularjs application. I am new to the testing world, so it's a little hard to understand all the options and the difference between them. My goal: to be able to run the tests simply from within…
15
votes
4 answers

Setting up appium for iOS app test automation

Looking far and wide for a step-by-step guide to set-up iOS Test Automation using appium, with scripts in Java (no ruby and/or cucumber). Note: The appium wiki is not helpful either.
Ethen Hunt
  • 579
  • 2
  • 4
  • 13
15
votes
3 answers

What is the Java equivalent to PhantomJS?

I would like to know whether there is any Java library equivalent to PhantomJS. What I want to achieve is to be able to simulate form login and submit actions from a web page and also to do page scraping as well. I know jsoup does page scraping but…
alextc
  • 3,206
  • 10
  • 63
  • 107
15
votes
2 answers

How to test binary compatibility automatically?

Can it be done before compiling, by comparing code? Is there any tools already doing this?
15
votes
4 answers

Selenium.WebDriver - I get error when I try to run my test in Chrome

I get this error when I try to run my test in Chrome: Initialization method AutomationUsingSelenium.SmuladorChrome.MyTestInitialize threw exception. OpenQA.Selenium.DriverServiceNotFoundException:…
Dumitru Chirutac
  • 617
  • 2
  • 8
  • 28
14
votes
2 answers

Clicking 'OK' on alert or confirm dialog through jquery/javascript?

I was thinking of writing some UI tests in backbone.js and jquery. They may not be the best way to do it but it's something that I was thinking about - to automate the tests without record and playback - through plain code. The only thing that made…
PhD
  • 11,202
  • 14
  • 64
  • 112
14
votes
1 answer

How to achieve browser resizing in run time using playwright? in a e2e test run

We have in protractor like: browser.driver.manage().window().setSize( width - 30, height ); How to achieve this in playwright?
14
votes
2 answers

Cypress login command with cy.request causes subsequent cy.visit to fail

I'm trying to make a programmatic login with Cypress before each test. My tokens are persisted in localStorage. If I alter it synchronously, i.e. simpy doing localStorage.setItem without involving cy.request it works fine. However, I would like to…
Johan
  • 35,120
  • 54
  • 178
  • 293
14
votes
2 answers

Disable web security in Cypress just for one test

After reading the Cypress documentation on web security and when to disable it, I've decided I indeed need to do it. Is there a way to disable this just for one particular test/test suite? I'm using version 3.4.1 and this config is being set in…
DurkoMatko
  • 5,238
  • 4
  • 26
  • 35
14
votes
2 answers

Cypress - exclude tests from beforeEach

90% of my tests need to do one task before start so I made beforeEach function that works perfect. Rest 10% need to do something else before start. Is in Cypress some way to do beforeEach except some tests?
Dominik Skála
  • 793
  • 4
  • 12
  • 30
14
votes
2 answers

How to use chrome profile in puppeteer

I am unable to use specific profile in Puppeteer. It always open the chrome as a new user. For example: I have 3 profiles for my chrome. Following is the code I am using to open chrome in specific profile: const browser = await puppeteer.launch({ …
nbi
  • 1,276
  • 4
  • 16
  • 26