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
3
votes
2 answers

FitNesse Test History with Version Control

I'm starting some automated acceptance testing for our company, and have decided to use FitNesse. I want to have FitNesse under source control - that is the FitNesse executable + plugins, the wiki pages and the test fixture source code. Then anyone…
GarethOwen
  • 6,075
  • 5
  • 39
  • 56
3
votes
5 answers

Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?

Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?
whitney
  • 356
  • 4
  • 5
3
votes
2 answers

When unit testing, how should one handle testing the initialization of objects?

So with most unit testing utilities I have come across, you usually get access to a SetUp() and TearDown() function of some sort. While I see that this comes in very handy for almost every unit test, I was wondering how testing the initialization of…
grg-n-sox
  • 717
  • 2
  • 5
  • 25
3
votes
3 answers

automatic testing for CSS?

Is there any tool that allows you to automatically test page under different browser and make sure CSS looks good? P.S. I know it sounds impossible, but maybe there are some solutions (like taking screenshots and comparing them)
IAdapter
  • 62,595
  • 73
  • 179
  • 242
3
votes
1 answer

Selenium2 (WebDriver) using Java fails when browser window is not focused

My Selenium Java Webdriver tests are failing when they start if I don't click on the browser page that is being opened. The following crash is caused from an ElementNotVisibleException, obviously. This was not a big issue until now that I have to…
lorenzo.urbini
  • 113
  • 1
  • 10
3
votes
1 answer

Selenium RC fireEvent() not working in C#

I am writing an automated test to test a sign up page. Each of the textbox on this page is validated on blur event. Sign up button is only enabled if the validation for all textboxes has passed. I have performed for each textbox the…
3
votes
1 answer

Nested Frame Cypress Automation Issue locating the input field

I tried locating the input field by using the below code, but it I keep getting an error as undefined. It looks to me like this is a legacy website with framesets nested within each other that makes it more complicated to enter or type into the…
aceman90
  • 33
  • 3
3
votes
2 answers

Playwright tests are running slow

I'm in the middle of migrating our tests over from Selenium to Playwright. One of the draws to Playwright is the supposed faster run time, but I am finding that to not be the case. I wonder if I'm stepping into some kind of heffalump trap that could…
Keiggo
  • 113
  • 8
3
votes
2 answers

Invalid Element State Exception - import a file

I'm writing an automated test that is supposed to import a series of files through the UI of a web application. You click the "Import" button and it opens Windows Explorer. I use the following XPATH in my test: filename_field =…
3
votes
2 answers

Testing Python Package Dependencies

Lets say I have a widely distributed/used python package called foo that's designed to work with the following dependencies: pandas>=1.3.0     pyarrow>=8.0 python>=3.8 How do I make sure that my foo package is actually compatible with all those…
3
votes
2 answers

How to simulate keyboard input to a console application?

I have developed an application in bash that uses "whiptail" to display dialogs in a terminal. (I personnally don't like this kind of UI but i'm only a developer, i don't make decisions ...). Anyway, now i have to test it, and i would like to…
user368507
  • 1,388
  • 1
  • 13
  • 25
3
votes
2 answers

In Cypress, should assertions be kept within test blocks themselves, or should they be in helper functions/automation steps

I recently started working on Cypress and I see a lot of assertions inside of helper functions/automation steps, this seems to me like it would be a bit of an anti-pattern since it would repeat these assertions in every and any other test that is…
3
votes
0 answers

Cypress - AEM default Captcha Service

How can I submit the default AEM (Adobe Experience Manager) captcha for testing purposes? Currently AEM allows to add 2 kinds of captcha: the first is default AEM built-in captcha service and the second is google reCaptcha service. In the second…
Mag
  • 207
  • 1
  • 8
3
votes
1 answer

How can I automate testing of a non-automation enabled desktop application

How can I automate testing of a non-automation enabled desktop application using Appium, WinAppDriver, Visual Studio, and C#? The application is not showing any XPath or other identifying elements. Are there any techniques or methods that I can use…
3
votes
3 answers

How to iterate over an element (node) list on Android Jetpack Compose UI Tests?

I'm implementing some instrumented tests using the Jetpack Compose testing library. I'm not too familiar with Kotlin / Android development yet, but I have years of experience with Selenium and other testing libraries, so I'm missing some basic…