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
27
votes
17 answers

WebDriver open new tab

I have trawled the web and the WebDriver API. I don't see a way to open new tabs using WebDriver/Selenium2.0 . Can someone please confirm if I am right? Thanks, Chris. P.S: The current alternative I see is to either load different urls in the same…
ChrisOdney
  • 6,066
  • 10
  • 38
  • 48
27
votes
4 answers

Injecting CSS into site with Puppeteer

The site I'm running automated tests on with Puppeteer displays info popups if actions were successful or when something failed. Unfortunately, these popups sometimes cover up buttons my script has to click on. It would be great if I could inject…
26
votes
3 answers

How can I use Google Test with my project that builds via autotools?

It seems like there are a few answers that kind-of, sort-of make sense, but that I don't know how to carry out. And I haven't found a comprehensive answer. The First Problem Google Test should not be an installed library, it should be built with the…
Joel
  • 2,065
  • 2
  • 19
  • 30
26
votes
2 answers

How to profile performance for a single unit test using Visual Studio 2013 Professional?

I would like to run the Visual Studio 2013 Professional edition profiler for a single automated test. It is not clear from other questions here on how to do so using the Professional edition. Is this possible and if so, how?
GaTechThomas
  • 5,421
  • 5
  • 43
  • 69
26
votes
7 answers

How do I setup FitNesse for use with .NET?

I'm trying to get started with FitNesse for .NET on Windows Vista. In all tutorials I find on the web I'm told to execute the run.bat file, but all i get when downloading the latest release is a .jar-file. When i run this, the filestructure is…
Fredrik
  • 261
  • 1
  • 3
  • 3
25
votes
12 answers

Postman: How to check whether the field is returning null in the Postman automation

I have tried with !== null, but it is returning PASS even when the field is returning 0 or empty string.
Tester77
  • 309
  • 1
  • 4
  • 10
25
votes
7 answers

Pytest - no tests ran

I'm using pytest and selenium. When I try run my test script: import pytest from selenium import webdriver from pages import * from locators import * from selenium.webdriver.common.by import By import time class RegisterNewInstructor: def…
Rafael C.
  • 2,245
  • 4
  • 29
  • 45
25
votes
5 answers

How should I test private methods in Java?

Possible Duplicate: What’s the best way of unit testing private methods? I am a beginner programmer, and I don't know how to write an application that will be well structured for unit testing. I want to write applications with the ability to…
Ben
  • 25,389
  • 34
  • 109
  • 165
25
votes
7 answers

how to change file download location in Webdriver while using chrome driver/firefox driver

I am trying to save an image by using save as option inside a specific folder. I found a way by which I am able to right click on the image which I want to save using save as option. But the problem where I am stuck is after getting the os window…
24
votes
6 answers

How to deal with file uploading in test automation using selenium or webdriver

I think that everybody who uses Webdriver for test automation must be aware of its great advantages for web development. But there is a huge issue if file uploading is part of your web flow. It stops being test automation. The security restriction…
lisak
  • 21,611
  • 40
  • 152
  • 243
24
votes
2 answers

Stubbing out Angular services in Cypress

I have this Angular web application I want to run e2e tests on a mocked out REST API. I can stub out my network requests to my REST API easy enough, but the authentication is using a third-party provider (Cognito using Amplify). Now I want to stub…
24
votes
2 answers

Testing endless scrolling RecyclerView with Espresso and RxJava

I have RecyclerView with endless scrolling. So when user reach last - 2 position in list, I call server for more data and during call in progress, I add one more item - progress one. Now, I'm trying to write decent UI test with Espresso which will…
Divers
  • 9,531
  • 7
  • 45
  • 88
24
votes
9 answers

How to resize/maximize Firefox window during launching Selenium Remote Control?

I am using Selenium Remote Control . During executing the tests the actual Firefox window is so small. I want it full screen so I can see what is happening. How can I maximize the browser screen?
chobo2
  • 83,322
  • 195
  • 530
  • 832
23
votes
8 answers

Cypress custom command is not recognized when invoked

I've created the following custom command in my cypress/support/commands.js file. Cypress.Commands.add("login", (username, password) => { cy.request({ method: 'POST', form: true, url: '/test/login/', body:…
Dan Swain
  • 2,910
  • 1
  • 16
  • 36
23
votes
5 answers

Automated testing of CSS and HTML front-end coding

I'm a front-end developer coding CSS, HTML and Javascript (in that order) and most of the work I do is design-lead. Whilst the quality of the designs I create with CSS is subjective, much of the coding is purely functional / layout and I am…
ajcw
  • 23,604
  • 6
  • 30
  • 47