Questions tagged [best-practices]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

One Tests or Multiple Separate Test Automation BDD

How the system works (UI) Registration Form > Redirect to Another Page with Products (based on the submitted in the registration form) (backend) API will check the validity > Valid or not it ...
  • 3
1 vote
1 answer
130 views

Unit testing function that reads from pdf - Having dedicated external files?

I am relatively new to automated testing and although I understand the basics to be able to "do it" I don't know much about what are best practices and why. Specifically I am trying to ...
1 vote
1 answer
163 views

Best practice for UI testing an app in kiosk mode

I have a Windows 10 UWP app that runs in kiosk mode in production, and I'm wondering what the best practice would be if I want to create automated UI tests for it. Like, how necessary would it be to ...
2 votes
2 answers
811 views

Whats the best approach to select elements for automated testing?

I read following in cypress's best practices. Anti-Pattern: Using highly brittle selectors that are subject to change. Best Practice: Use data-* attributes to provide context to your selectors and ...
  • 121
0 votes
4 answers
176 views

Automate the stable build only

I have the understanding that Automation Scripts need to be built on a stable build (application). I mean once manual QA signs off, to reduce their burden on regression/repeated testing, we Automate ...
  • 697
0 votes
3 answers
115 views

Assertion on static value or calculated one

This may be more of a theoretical question than a practical one, but I'd like to know the community's opinion. Some context: On some integration UI test, in which we are testing that a field ...
  • 101
5 votes
4 answers
2k views

Strategies for discovering undocumented API

Inspired by this question: How to approach API testing. The first point of a checklist in the above question is "API Endpoints". But, what to do when you don't have the endpoints documented because ...
  • 4,119
1 vote
1 answer
177 views

Number of actors in E2E tests

We have roughly 30 Cucumber tests and a few actors that run these tests that have been created based on our service's personas. Exemplifying this: We have a C2C ecommerce platform and an user. Users ...
  • 111
1 vote
3 answers
757 views

Is there a better way to code-review JMeter test-plans?

TLDR - What is the best way to review JMeter Test-Plans stored in a GitHub repo? Currently, the code-review process that my performance-test team uses is somewhat cumbersome and of questionable ...
6 votes
4 answers
9k views

How to inspect elements on pages with 'loading' spinners?

Note: This is intended as a Q and A post for sharing successful strategies. Please, feel free to add more solutions! Problem background: Automating a web application Tester with limited access to ...
  • 4,119
-1 votes
2 answers
212 views

Do you test methods that return queries from the database?

I just want to know if you test the output of a query with unit testing. Is this considered good practice? For example you have a method getUsers() getUsers(){ // Overly simplified return ...
1 vote
0 answers
53 views

Is it possible to write good Code (create a good code framework) AND use Cucumber (or another Gherkin tool)?

When I look at the code Cucumber outputs, it does not seem to follow best practices (or any moderately good practices) for writing a testing framework. Question: Is there a way to use Cucumber and ...
  • 139
5 votes
3 answers
300 views

How often should system tests be run?

As soon as a developer pushes a commit, our Jenkins run unit tests, then integration tests (e.g. just backend) and finally system tests (e.g the whole app: backend, frontend, platforms, etc). The ...
  • 51
1 vote
2 answers
105 views

What are important rules of static analysis to use in our automated scripts?

I am fan of improving the quality not only of the product I test but also for the test itself. I want to create other customized rules for integrating with sonarqube that does not exist in classic ...
6 votes
3 answers
237 views

Is it a good idea for a Developer to review a tester's code

Background : Currently working in a firm which follows a practice where the QA's e2e and API automation suites are mandated to be reviewed before being pushed in a CI pipeline. It's a practice that is ...
  • 3,540
62 votes
20 answers
19k views

Best guidelines for bug reporting?

Nothing can ruin your day like a poorly-written bug report. I've seen several sets of guidelines for bug reporting in different organizations. In your opinion, what guidelines/steps are most ...