Hot answers tagged

14 votes
Accepted

How to approach API testing?

API Test Checklist Endpoints Actions Status Codes Payload Data Performance Security Specifically Verbs / Actions / Methods What documentation exists ? What functionality it provide ? Does it ...
user avatar
13 votes

API test automation: GUI tool vs programmatic approach?

I have had exactly the same assignment earlier this year, for APIs written in C#. Options I have (tried to) build a PoC for were: SoapUI Postman Own framework built in C# using either RestSharp or ...
user avatar
  • 5,834
9 votes
Accepted

API Testing tools in C#

You can use the combination of any unit testing framework (like NUnit, MSTest, XUnit) with additional nuget packages for the work with REST API itself RestSharp (http://restsharp.org/) Probably the ...
user avatar
6 votes

API Testing tools in C#

Writing an API test in Visual Studio can be done with: NUnit or MSTest as your Test Runner ** NUnit and the TestAdapter are available on Nuget An http client, like .Net's HttpClient ** This is in the ...
user avatar
  • 4,030
5 votes
Accepted

How to create generic Java code to make REST API calls?

I generally agree with @alexey-r... You should probably just re-write the code when the library changes. Companies change libraries for a reason; new features, better features, streamlined ...
user avatar
  • 528
4 votes

How to create automation framework for automation of REST APIs?

REST-Assured is one good option. I have used it with Java. It's a really good option and gives you the flexibility to do a lot when it comes to API testing. Refer to the below link for further ...
user avatar
  • 1,712
4 votes
Accepted

Assistance with a DELETE request in Postman

You need to provide token generated create Token API here in header under cookie field. and URL used in not as mentioned in API https://restful-booker.herokuapp.com/booking/{bookingID} Please ...
user avatar
  • 76
4 votes

How to create generic Java code to make REST API calls?

I would approach with just refactoring the code to use restLibTwo. Here are few points on why I would do that: Rest calls are just HTTP calls. Moving to another lib (for example RestAssured) would be ...
user avatar
  • 11.4k
3 votes
Accepted

Career path advice - microservices or APi testing

Start from learning REST API testing. REST is just an architectural paradigm, however most often it is implemented over HTTP protocol. So if you mean such the REST API then I would recommend to learn: ...
user avatar
  • 11.4k
3 votes

How to create generic Java code to make REST API calls?

You can take a look at Google HTTP Client Library for Java, that offers: Pluggable HTTP transport abstraction that allows you to use any low-level library such as java.net.HttpURLConnection, Apache ...
user avatar
  • 10.4k
3 votes

commit end 2 end / acceptance tests in FE or BE repository?

How to store code in a repository has many factors. How many people are working on this project? Who is responsible for testing (devs only, devs and qa)? What testing methods are in use: unit tests, ...
user avatar
  • 1,563
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 ...
user avatar
  • 255
3 votes

Should i learn SOAP API or Rest Assured API Testing?

Don't focus too much on tooling. Tools will go out of fashion. Perhaps not this year, not in 2 years, but definitely a few times during your career life (provided you are not at the end of it, but ...
user avatar
  • 4,328
2 votes

How to test Single Sign On (SSO) implementation?

Single Sign-On is a very broad term and testing it will much depend on how it has been actually implemented in your project. In short Single Sign-On provides you a way to authenticate at one place (...
user avatar
  • 10.4k
2 votes

API testing single layer

I worked on a reasonably similar stack and I would be looking at starting at the ‘lowest’ layer possible and work my way up to testing A. So, in this case, I would be aiming to test B, C and D. ...
user avatar
2 votes

API test automation: GUI tool vs programmatic approach?

In a similar case, we went with writing our own very light weight framework. Reasons are: We were not using many of the features of Soap UI, so just to make Restful calls, Soap UI is an overkill The ...
user avatar
  • 71
2 votes

Where to find the authorization token in JMeter recorded scripts of an android app?

It should normally be somewhere in the first response, either in response body, or headers, check the first response for anything looking like a token, extract it using a relevant JMeter PostProcessor,...
user avatar
  • 12.6k
2 votes

Comparison testing using karate tool

Yes, this should be very easy with Karate. I suggest you don't over-engineer tests and make 2 requests in your test. Save the response of the first request. Now all you need to do is perform a match ...
user avatar
2 votes

How do you test a backend API?

There are a couple of areas that you will have to understand and provide focus in testing. Understand the Purpose of the API that you are testing. What is it for? How is this going to be used? ...
user avatar
2 votes

Career path advice - microservices or APi testing

Read books Attend meetups Organize meetups Browse this site daily Learn about HATEOS Post questions and answers here Read questions here on API's https://sqa.stackexchange.com/search?q=restful+api
user avatar
2 votes
Accepted

SoapUI response: Integer range validation

Here are the steps: Prepare a request returning the data you need Create a Test Suite Create a Test Case within that Test Suite Add that request as the step to the Test Case Open that step editor In ...
user avatar
  • 11.4k
2 votes
Accepted

Good strategies to test integration with multiple external providers

Let's start from the bottom line- unless you revolutionize everything there will be no magic solutions. Martin Fowler describes here the most common approach- test against a simplified copy of the ...
user avatar
  • 6,945
2 votes
Accepted

XML Payload gives 'The ' ' character, hexadecimal value 0x20, cannot be included in a name.' error

you are trying to make an element called 'Item IsKit =\"false\"' it looks like you actually want to create an Element called Item with an attribute called IsKit. Try this: new XElement("Item",...
user avatar
  • 1,182
2 votes

How to create generic Java code to make REST API calls?

I believe Alexey and MivaScott have provided good advice here. I would like to add some additional thoughts on why coding to use any possible REST API client may not be the best idea. Some of this ...
user avatar
2 votes

Should automation code be as complex as application code?

Should an automated testing project be created complex as much as software being developed? Probably, I would handle test-code the same as production-code. It should be as complex as it needs to be....
user avatar
2 votes

Should automation code be as complex as application code?

Automation is about writing code. It therefore can (and should) be as complicated or simple as need for the purpose it is needed. Generally a more complex application, for instance one with many ...
user avatar
2 votes

Should automation code be as complex as application code?

Should software test automation projects echo the structure of the application in test? If "Echo" means to follow the same structure as the project from a code perspective (e.g. have package ...
user avatar
  • 618
2 votes

How can I test when app requires OTP via SMS?

Another option you could try is Google Voice (voice.google.com). This will give you a web interface to a phone number which is free for your first number. I have used the app to test two factor ...
user avatar
  • 30.8k
2 votes

JMeter - JSON parse error: Unexpected character

Your data is not a valid JSON, you can check it yourself using i.e. online JSON formatter and validator You syntax of combination of __eval() and __FileToString() functions is incorrect, you should ...
user avatar
  • 12.6k
2 votes

JMeter - JSON parse error: Unexpected character

Your JSON is not valid: 1 { 2 "User ID": 204120, 3 "name": "New User", 4 "Description": [{ 5 "name": "john", 6 "id": 204110, 7 "type": "robotics" 8 }], 9 "Status": "Post ...
user avatar

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