Skip to main content
13 votes

What tests to automate in a full stack web application? API vs UI

You should always pick tests carefully when it comes to test automation. :) One of the reasons, as you said, is overlap (and with that, execution time and robustness). An example to clarify: Your API ...
FDM's user avatar
  • 5,894
6 votes

What tests to automate in a full stack web application? API vs UI

There is no concept of overlapping testcases in different test levels, Both are completely isolated Just because API works fine you cannot guarantee UI works fine. Imagine all your API tests passing ...
PDHide's user avatar
  • 11.1k
4 votes

What tests to automate in a full stack web application? API vs UI

TL;DR: you will have overlap between E2E and API integration test cases, in terms of the same endpoints being exercised in both and that's OK - it helps you figure out where the problem is if (...when)...
jonrsharpe's user avatar
3 votes

I want to practice testing API but can't find anything interesting

Try the petstore - it's a common API used in examples. I used it when working with JMeter and it's a useful API to practice with. https://petstore3.swagger.io/ You can do all sorts of different things ...
Moorpheus's user avatar
  • 265
3 votes
Accepted

TestNG- No tests found. Nothing was run

make sure you are importing org.testng.annotations.Test and not org.junit.Test
velocity's user avatar
  • 146
3 votes
Accepted

Pros and cons of using database dump in autotesting?

I definitely understand the want to do it through the UI. Seems so much easier. I think that you're on the right track though to start doing it with the UI. The data will be much closer to what you ...
Lyndon Vrooman's user avatar
3 votes
Accepted

Consume POST request data to GET and DEL requests

This what the Postman variables do, Assuming that your response data is: { name: "something" user:{ id:"12" } } in the test script section, add below command let jsonData = JSON....
PDHide's user avatar
  • 11.1k
2 votes

API tests against production DB with no endpoints to set up test data

Reading your question it seems you have a messed up DevOps pipeline. The fix should not be for the testing strategy but the DevOps implementation itself. Few things that needs to be restructured are: ...
PDHide's user avatar
  • 11.1k
2 votes
Accepted

Rest-assured - Schema to use cannot be null

The file path should be relative to class path , try statusCode(200).and().body(matchesJsonSchemaInClasspath("\\test\\java\\com\\rest\\api\\schema\\getuserschema.json")); or statusCode(200)....
PDHide's user avatar
  • 11.1k
2 votes

I want to practice testing API but can't find anything interesting

Restful-Booker is purpose made for learning to test an API. You can either use the online version, or you can check out the repo and run it locally if you prefer. I think it's a pretty useful site to ...
testerab's user avatar
  • 5,115
2 votes

Breaking a loop after resolving a promise

For loops are problematic in Cypress because they run run faster than the Cypress command queue. You don't show the Cypress commands above, but I assume they are following the warmup loop and are only ...
Steve Zodiac's user avatar
2 votes

How to validate nested array from JSON response using Postman?

You solution in the comment section: pm.test('Check nested Id data type', () => { _.each(pm.response.json().values, (topLevelItem) => { _.each(topLevelItem.values, (nestedItem) => { ...
pavelsaman's user avatar
  • 4,548
1 vote
Accepted

how to insert generated id from response , into the endpoint

From RestAssured docs, you can do the following: String json = post(URL_TO_CREATE_ENTITY).asString(); String id = from(json).get("generatedId"); // Or whatever is the name of the attribute ...
João Farias's user avatar
  • 10.9k
1 vote

java.lang.NullPointerException,at ✽.Given product is set with the following fields(src/test/resources/features/wizard/wizardNewProduct.feature:

You're not initializing your productRequest. So lines like: productRequest.setName(...); or productRequest.setProductTypes(...); obviously fail.
Alexey R.'s user avatar
  • 11.6k
1 vote

How to verify the page load opened in a new tab with a redirection?

Seems your switching tab is not working properly. Please check that new tab handler is okay. # collects handle ID of current window first_tab_handle = driver.current_window_handle ...
Mat's user avatar
  • 151
1 vote
Accepted

How to automate GraphQL tests with Postman

https://explore.postman.com/templates/1692/working-with-graphql This is a postman example , just click try with postman and it opens up postman with collection and everything set up You add test ...
PDHide's user avatar
  • 11.1k
1 vote

I want to practice testing API but can't find anything interesting

This and this GitHub repositories provide a curated list of service projects, many open source, and buildable by running a couple of Docker commands. You may also want to visit this site. As an ...
João Farias's user avatar
  • 10.9k
1 vote

What tests to automate in a full stack web application? API vs UI

My gut feeling is to concentrate on automating the backend API first. Unit tests are good and necessary, but they don't give me high confidence that the system as a whole functions. Some of the most ...
o.m.'s user avatar
  • 450
1 vote

What tests to automate in a full stack web application? API vs UI

There is no need to test the same thing with API and UI tests. Start with API (keeping in mind the test pyramid), provided code is sufficiently covered with unit tests, and automate certain e2e ...
Mate Mrše's user avatar
  • 4,119
1 vote

How to do API Automation when the content can be very dynamic and the API calls are not directly happening through browser?

You can Extracting data from responses and chaining requests in postman tool. Please refer below links which may be helpful. Extracting data from responses and chaining requests For a dynamic ...
Malay Parikh's user avatar
1 vote

Can we run One thread group with multiple threads but hitting same request by all threads concurrently in jmeter?

JMeter threads are absolutely independent, their context (session state, variables, etc) are stored locally hence each thread represents an individual virtual user. Each thread executes samplers ...
Dmitri T's user avatar
  • 13.5k
1 vote

Pros and cons of using database dump in autotesting?

Why not just stub out the database and deal only with Entities? Databases are details which you can: (1) - Check behavior independently; (2) - Isolate your use cases from. If you want to set up a ...
João Farias's user avatar
  • 10.9k

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