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 ...
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 ...
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 ...
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 ...
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
...
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, ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
Community wiki
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
selenium × 57testing × 24
java × 15
unit-testing × 9
test-automation × 9
tdd × 6
bdd × 5
c# × 4
object-oriented × 4
web-development × 4
integration-tests × 4
acceptance-testing × 4
selenium-webdriver × 4
automation × 3
cucumber × 3
python × 2
agile × 2
continuous-integration × 2
ui × 2
qa × 2
browser × 2
functional-testing × 2
design × 1
javascript × 1
object-oriented-design × 1