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
23
votes
5 answers

Nightwatchjs: how to check if element exists without creating an error/failure/exception

In the page I'm testing, two buttons may be displayed: BASIC or ADVANCED. I want to be able to tell if the ADVANCED button is showing -- and if so, click it. If the BASIC button is showing, I want to do nothing and continue with my test. All of the…
Aaron Kuehn
  • 231
  • 1
  • 2
  • 3
23
votes
5 answers

How to do a mouse over using selenium webdriver to see the hidden menu without performing any mouse clicks?

How to do a mouse hover/over using selenium webdriver to see the hidden menu without performing any mouse clicks? There is a hidden menu on website which i am testing that only appears on mouse hover/over. Note: if any clicks is performed, page is…
Rahul Lodha
  • 3,601
  • 7
  • 25
  • 34
22
votes
5 answers

Pex users: what are your Impressions of Pex and Automated Exploratory Testing in general?

Those of you who have used Pex, what do you think its advantages and disadvantages are of Pex as a tool? Also, what do you think are the advantages and disadvantages of "Automated Exploratory Testing" in general, as a supplement to TDD/Unit Testing?
Troy DeMonbreun
  • 3,860
  • 3
  • 25
  • 35
22
votes
6 answers

How to take screenshot at the point where test fail in Espresso?

I am looking for a way to take a screenshot of device after test failed and before get closed.
think_better
  • 343
  • 1
  • 2
  • 11
22
votes
3 answers

VS 2010 Coded UI Test - Launch Referenced Application

I'm using Visuial Studio's Coded UI Tests to run Automated UI tests on a WPF Application everytime a build runs on my TFS server. The problem I am running into is dynamically launching the executable based on the path where it was just built to,…
Cory
  • 221
  • 1
  • 2
  • 3
22
votes
7 answers

Using JUnit as an acceptance test framework

OK, so I work for a company who has openly adopted agile practices for development in recent years. Our unit tests and code quality are improving. One area we still are working on is to find what works best for us in the automated acceptance test…
Chris Knight
  • 24,333
  • 24
  • 88
  • 134
22
votes
7 answers

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

I'm trying to run a Junit Test case which i exported from Selenium IDE. Im getting above exception.I'm using Windows XP,Firefox 20.0.1,and using selenium-server-standalone-2.28.0.jar.Upon run, a blank Firefox window is opened. When I close that…
Prateek Mohan
  • 229
  • 1
  • 2
  • 5
21
votes
2 answers

React testing library id instead of data-testid?

Would be any difference if I used HTML id attribute instead of data attributes like data-testid? Reference for the use of data-testid in testing: https://testing-library.com/docs/queries/bytestid/
aldokkani
  • 853
  • 1
  • 8
  • 17
21
votes
7 answers

Run single test of a specific test suite in Jest

I have a file called "test-file-1", within it i have a few describes (test suites) with unique names and inside them i have tests which may have similar names across test suites. To run a single test suite or test i type the command below. npm test…
Gabriel Souza
  • 965
  • 5
  • 16
  • 36
21
votes
3 answers

Assert that element is not actionable in Cypress

If an element is not actionable on the page (in this case, covered by another element) and you try to click it, Cypress will show an error like this: CypressError: Timed out retrying: cy.click() failed because this element: ... is…
Laura
  • 3,233
  • 3
  • 28
  • 45
21
votes
1 answer

Detect and test Chrome Extension using Puppeteer

Is there a way to test a Chrome extension using Puppeteer? For example can an extension detect that Chrome was launched in "test" mode to provide different UI, check content scripts are working, etc?
ebidel
  • 23,921
  • 3
  • 63
  • 76
21
votes
3 answers

openDrawer from espresso contrib is deprecated

Espresso contrib (com.android.support.test.espresso:espresso-contrib:2.2.1) openDrawer method is deprecated then how should I open a drawer?
21
votes
5 answers

Embedded AMQP Java Broker

I am trying to create integration test for a Scala / Java application that connects to a RabbitMQ broker. To achieve this I would like an embedded broker that speaks AMQP that I start and stop before each test. Originally I tried to introduce…
ahjmorton
  • 965
  • 1
  • 5
  • 18
21
votes
11 answers

How to get bundle id of iOS app - either using .ipa file or app installed on iPhone

Currently I have .ipa file and same app can be installed through test flight. I don’t have the app source code. I tried extracting the files from .ipa file using Archive Utility but there was no plist file. I am not sure how do I get the bundle id…
NRM
  • 271
  • 2
  • 3
  • 6
21
votes
1 answer

How to create Startup and Cleanup script for Visual Studio Test Project?

I'm using a Visual Studio Test project, am modifying the test config with deployment files, etc. (through the VS GUI) and now I need to write a Startup script for the test run. I have no clue what language or file type or mechanism is used for these…
John K
  • 28,441
  • 31
  • 139
  • 229