Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
13 votes
Accepted

Which stage of Agile (SCRUM) should we start creating automation tests?

Test automation (and all other testing) should be part of the definition of done. This in order to make a potentially shippable product. Can you ship if it wasn't tested? Testing should also be a ...
Niels van Reijmersdal's user avatar
9 votes
Accepted

Automated Tests on Dynamic Content

You seem to be on the right path for live, automated testing, but have some significantly complicating factors: Dynamic content ups the difficulty of specifying a test. You often have to state it in ...
Jonathan Eunice's user avatar
6 votes

Unit tests vs Automation testing

No, it is not a good approach. It is actually a terrible and common one. I would say it is a testing anti-pattern. End-to-End tests like you describe are high-effort, low-value and have high risk of ...
Euphoric's user avatar
  • 37.4k
6 votes
Accepted

How to check a solution method submitted by a user?

Question: what is a test supposed to do? Answer: verify that the system under test (website in this case) has the desired functionality. Therefore the answer is relatively obvious: you run the test ...
Philip Kendall's user avatar
5 votes

Unit tests vs Automation testing

End-To-End tests have the following benefits They are very close to what the end user sees (often they directly test what the end user sees). They can directly test the fitness for purpose for the ...
Martin K's user avatar
  • 2,917
4 votes
Accepted

Automated Testing: where do I put Selenium?

What I will typically do is keep all of my tests under the test directory. I separate them by creating two modules: integration-tests and unit-tests. Example project structure: MyAwesomeProject ...
DobromirM's user avatar
  • 232
4 votes

Should I have different automated Selenium tests for different screen resolutions?

It is unlikely that you catch layout-related regressions with Selenium tests: The regressions related to how elements are displayed lead to layouts which look broken, but still have all the elements ...
Arseni Mourzenko's user avatar
4 votes
Accepted

How does a site API determine the difference between a user and program request in a browser?

In general, websites look for anomalous traffic patterns. Cookies that don't match up, requests made in the wrong order, that sort of thing. If a website is keenly interested in this distinction, ...
Robert Harvey's user avatar
3 votes

How to check a solution method submitted by a user?

The key question here is "do you have control of the website that's being tested?" If you don't I'm not sure it's realistically possible, You would have to analyse and virtually duplicate ...
Ewan's user avatar
  • 76.3k
3 votes

Is it a bad practice to return third party reference from public method?

You could use a facade, something like public interface ILocator { ... } public interface IElementFinder { findElement(ILocator loc) } You would need to extract all relevant, general ...
NiklasJ's user avatar
  • 675
3 votes
Accepted

Is it a bad practice to return third party reference from public method?

You are right to be hesitant in leaking your third party library types all over your own code. You are also right in wanting to keep your classes focused and to the point. The way you get around it ...
Marjan Venema's user avatar
2 votes

Is using both Selenium and Mocha redundant?

I am going to answer my own question since it dawned on me kinda. Note this is my way of thinking when dealing specifically with React. So when writing tests in Mocha we are mostly doing only unit ...
ScienceSamovar's user avatar
2 votes
Accepted

Using Selenium in a Web Service

There are no limitations that do not apply to selenium itself There is nothing that prevents you from driving selenium based on a call to a webservice. It is not hard to implement some code that will ...
JDT's user avatar
  • 6,380
2 votes

Which stage of Agile (SCRUM) should we start creating automation tests?

The key thing is that you not mark a story complete unless you have written automated tests for that story. So 1 seems to be out, as you are writing tests for a task completed in a previous sprint. ...
Ewan's user avatar
  • 76.3k
2 votes
Accepted

Simple parallel multithreading script

Your script seems to be IO-Bound and not CPU-Bound. As such, it will benefit from threads even having the GIL in place, because calls such as browser.get and search.send_keys are going to block until ...
mementum's user avatar
  • 136
2 votes

In BDD - How do I automate tests up front for things that don't exist YET

If you have a structure in place and good requirements you should be able to write tests which will pass when the code is written. So for example if you are using selenium you can give the imaginary ...
Ewan's user avatar
  • 76.3k
2 votes

UI Testing and Code Coverage

About your 80%. I assume it is about code coverage, right? The question is also can you test all business logic through the UI? Is every code path really available through UI actions? There might be ...
Sjoerd222888's user avatar
2 votes
Accepted

How would you have a fallback for html insert when the html has changed?

Tools that record XPaths tend to generate extremely specific XPaths. As you have realized, this makes for brittle locators. The challenge with identifying elements in a dynamic structured document, ...
Greg Burghardt's user avatar
1 vote

Selenium and Junit: Does it make sense?

Selenium is a testing tool that is aimed at testing a browser-based user-interface, while JUnit is a testing tool that is designed for unit-tests and tests classes/components through their ...
Bart van Ingen Schenau's user avatar
1 vote

Which stage of Agile (SCRUM) should we start creating automation tests?

Ideally you should write automated tests in the same sprint that the code is written. Code shouldn't be considered "done" until automated tests have been written, and you must get code to a "done" ...
Bryan Oakley's user avatar
  • 25.3k
1 vote

How to make a webdriver run reliably in Selenium?

This may not be the most satisfactory type of answer, but the fact is that web browsers are not built and tested with the expectation that they will be run continuously for weeks or months, while ...
Otto G's user avatar
  • 141
1 vote
Accepted

Is there a benefit to using a specific language with Selenium WebDriver?

Regarding the language it probably does not matter. Just choose the one you're most comfortable with. With C# and Visual Studio you can use combine Selenium and Specflow which may help writing the ...
diogod's user avatar
  • 46
1 vote

Should I have different automated Selenium tests for different screen resolutions?

Use a design spec test to validate computed CSS properties for each breakpoint. For example: At the top of the spec file, we define named elements using CSS selectors. These can then be used ...
1 vote

Selenium and non technical team members

Consider using a keyword-driven testing framework. The idea is, developers develop high level keywords (or you use the ones that come in a library), and the tester simply assembles these keywords into ...
Bryan Oakley's user avatar
  • 25.3k

Only top scored, non community-wiki answers of a minimum length are eligible