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
1 answer

Again "Stale element reference: element is not attached to the page document"

I know that is exception is thrown when DOM tree has changed and solution for this is to find element again after refresh but... I'm doing following operations: sessionsView.filterSession(sessionName); lockSession(); approveSession(); …
kris82pl
  • 977
  • 3
  • 12
  • 21
3
votes
0 answers

How to solve androidx.test.tools.crawler.SignaturePatchingCallback@3abe0b8 stage: PRE_ON_CREATE)

I want to use App crawler to test my app, but I got the following error after I execute this command java -jar crawl_launcher.jar --app-package-name com.**.*** --android-sdk ~/Library/Android/sdk --ui-automator-mode 2022-04-15 01:09:45.555…
mesa kong
  • 61
  • 1
  • 3
3
votes
2 answers

Testing custom Silverlight controls without using AutomationPeer

My manager asked me to do some automated UI tests for our Silverlight application. The problem is that this application uses some custom controls, therefore I cannot programmatically access them right away. The only way to access them is to use…
Val
  • 629
  • 1
  • 6
  • 12
3
votes
2 answers

Selenium WebDriver Getting Error:java.net.SocketException: Connection reset

I am getting the following error Just to add this code was working fine earlier. I havent changed anything. The firefox browser open but nothing happens. I can see webdriver written in bottom right. Exception in thread "main"…
Gulshan Saini
  • 44
  • 1
  • 1
  • 4
3
votes
3 answers

How can I imlement soft Assertion in my Cypress test

I am struggling with implementing soft assertions in my Cypress test. I need to convert all the assertions to soft assertions. The problem I encounter is that I cannot locate the element in the jsonAssertion. For example cy.get('span[class="h4"]')…
3
votes
1 answer

Cypress: Import line under commands.ts causes errors

When I add imports into the commands.ts, then I get errors by running the tests. commands.ts import 'cypress-localstorage-commands'; /* eslint-disable */ declare namespace Cypress { interface Chainable { commandA(); …
3
votes
2 answers

Running automated tests on TFS 2008

We have set TFS up to automatically build when we check-in, that works fine. Our problem is how do we get the unit tests to run on the server? How do we run tests on the build server? How do we automatically run SQL Scripts on the server to build…
Shiraz Bhaiji
3
votes
2 answers

How to test E2E my Chrome extension - best practice

I have a chrome extension which I'd like to E2E test (simulate some basic user interactions). Using Cypress, I was able to load my app but couldn't interact with it (i.e. go to the app url using the chrome-extension:// protocol). Then I found out…
Tamir Nakar
  • 933
  • 1
  • 10
  • 17
3
votes
2 answers

Playwright URL Config - Environment variables for multiple apps and different base urls

What would be the best way to configure and use urls for a project with 2x WebApps 3x Environments ... where we have a situation that looks like this as an example Fruit…
Hoppjerka
  • 128
  • 1
  • 9
3
votes
2 answers

Automated GUI testing of Windows explorer shell extensions

I'm working on automating GUI tests of a Windows explorer extension. Think something like the TortoiseSVN menu. I'd like to be able to do something like TortoiseSVN->Show Log in the context menu. I'd prefer a Ruby solution if possible but am willing…
peakxu
  • 6,667
  • 1
  • 28
  • 27
3
votes
1 answer

Azure Pipeline VSTest@2 with multiple target frameworks

I have a project that targets .NET Framework 4.6.1 and also .NET 5.0. net461;net5.0 When I run all tests in the test explorer I can tell see that the number of tests is doubled because they are run for both…
3
votes
1 answer

Pytest- use a generator for mark.parametrize

I have a mongo db with a very large collection that I need to run tests on with Pytest. I am trying to do it the usual route of using the mark.parametrize dectorator but with pymongo.cursor Cursor object: def get_all_data(): return…
tHeReaver
  • 215
  • 1
  • 10
3
votes
1 answer

How to make WebdriverIO type slowly in an input box

I am working on writing test cases with WebdriverIO and I have noticed that the only way to set values to an input is using setValue. This literally sets the whole value you have to the input box. What I need , however, is to type the characters…
damian-sketch
  • 151
  • 1
  • 14
3
votes
1 answer

Testcafe can't import files in configuration file

Using testcafe v1.17.0. I have the configuration file .testcaferc.js with the newly merged global hooks property. In all of my fixtures, I have a before hook which does a certain amount of requests to an API, and with the new global hooks I wanted…
Adam Silva
  • 1,013
  • 18
  • 48
3
votes
1 answer

How to test Django model fields

I want to do unit tests for Django model fields: class Animal(models.Model): name = models.CharField(unique=True, max_length=30, blank=False, null=False) class Meta: managed = True db_table = 'animal' ordering =…