Skip to main content
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
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
  • 38.2k
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,947
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

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

End2End/integration Testing in Java with Selenium - how to get a good test structure - looking for experiences

I have been organizing and implementing end-to-end test frameworks for more than 10 years. I have to say, I am frustrated by the lack of design patterns and architectural guidelines for this kind of ...
Greg Burghardt'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
  • 84.4k
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
  • 84.4k
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

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

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 ...

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