Questions tagged [api]

Application Programming Interface : a set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service.

Filter by
Sorted by
Tagged with
6
votes
1answer
60 views

API Test Plan Documentation Standards

I've a question for experienced API testers, especially those who work in large organisations. I've been tasked to identify any industry standards for documentation of API test plans. So far, I've ...
4
votes
7answers
141 views

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

I want to practice in automating API testing but can't find anything interesting. Everything that I found were on the one hand rather complicated, on the other hand they did not allow testing such ...
-1
votes
1answer
31 views

How to fetch the list of newly created time entries alone using Postman? [closed]

From this json, I need to fetch created_at. How should I do it in Postman? { "meta": { "total_logged": 127200, "total_logged_per_team_member": [ ...
0
votes
2answers
42 views

Asserting against database during selenium test run

Just wanted to hear some thoughts about asserting against the database during a selenium test suite. For the website I am working on is a SPA with API backend where the majority of the service ...
0
votes
0answers
17 views

API to export cert

Is there any windows api available to export my cert MMC.exe, which exports the .cer files from their certificate store? I'm looking for the API which is compatible with software testing such as ...
1
vote
0answers
65 views

GUI tool for API testing with possibility to choose HTTP protocol version

I'm looking for a GUI tool for API testing that allows for changing a HTTP protocol version. There're many tools for API testing, but all I've found don't offer a choice of selecting what HTTP ...
2
votes
6answers
101 views

API Management Tool Recommendation

I am looking for a tool for API testing and collaboration that offers the following: Creating a workspace that can be shared with a limited number of people. A good number of collections without ...
0
votes
1answer
144 views

Can i check at a time multiple api in jMeter? [duplicate]

I have started the JMeter in the mobile Application can I test the Multiple API at a time in Jmeter if yes then how can I check the output?
-2
votes
1answer
21 views

How to provide File and some para. to POST API using Python/ C#?

Team, I am trying to provide File and some para. as a input for API. Expecting output based on validation. Even after providing both inputs correctly, I am getting File as null with length 0. Below ...
1
vote
0answers
66 views

Header isnt being sent when using faraday gem ruby

I am doing an Api automation in Ruby and I am using the Gem Faraday to automate a file upload in my API. I have the follow problem: My Header is not being sent. I just tried all the options and is ...
1
vote
2answers
792 views

JMeter - JSON parse error: Unexpected character

I am trying to add dynamic Post response on one rest API URL(http:IP:9000/page) with data as a JSON request in file format, So to add that file in post body I use the command: {__$FileToString(C:\...
0
votes
3answers
526 views

Postman or any API tools for API cache testing

my application (Restful API, no UI interface at this moment) has the Cache Async in memory functionality at each GET, POST, PUT, DELETE. Does Postman or any API tools has the ability to test the cache ...
0
votes
0answers
262 views

TestNGClassFinder Warning: Can't link and determine methods of class examples.ExamplesTest

Just started with Karate API test sample project and encountered with this issue. My pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
107 views

Best practice for testing data integrity between server and UI

I am a QA. This is the software chart: Search Engine (Apache Solr) <-> Server (expose itself to UI by an API) <-> UI. The server makes queries on the search engine and send the returned data ...
0
votes
2answers
1k views

How can I test when app requires OTP via SMS?

I am using Selenium with Java to test a web application. The app requires a user to receive a One-Time Passcode (OTP) to authenticate they are who they say they are and to authorize several critical ...
1
vote
2answers
222 views

Postman API test structure

Recently I started writing tests for our API. However, I have faced some issues which I think it is critical to think at the start. How should I structure my tests in terms of setup and cleanup phase(...
0
votes
0answers
683 views

Use tv4 to validate schema in postman

I am trying to validate a scheme using tv4 in Postman, but no matter what I do it always passes - even if I force bad data. I am unsure if I am doing something wrong or if there is an issue with tv4 - ...
8
votes
1answer
399 views

How to approach API testing?

This is one of the most common needs today and consequently a common interview question. This question is intended to be a canonical answer to the general question of "How do I test an API". Other ...
2
votes
1answer
63 views

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

I have two repositories: Backend API (php/laravel). API tests written with codeception Frontend SPA (vue). tests written with jest I now want to write e2e/acceptance test. The tests should automate ...
0
votes
4answers
113 views

Should automation code be as complex as application code?

Software project are often created as modules (in separated project folders) and communicate using services and apis to communicate between modules in order to improve flexibility and scalability. ...
0
votes
4answers
2k views

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

I have some automated RESTful API tests in Java. They use a proprietary Java library (restLibOne) to make API calls. The proprietary library is similar in concept to REST Assured, but vastly different ...
0
votes
1answer
72 views

How do I pass payload to API test?

I'm creating an API testing framework, and to avoid having a test class containing 1000's of lines of code I'm looking at creating separate classes which will hold the xml data, which I'll then call ...
0
votes
2answers
145 views

Setting up an API Test Framework

I'm testing an API and I'm looking to define my payload using classes so that my program can then deserialize/serialize into any format (namely XML in my case). Below is an example of the payload: ...
0
votes
1answer
722 views

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

I'm attempting to create a test framework in c# to automate some of our API tests. Relatively new to this area so have come across an issue I can't solve. My XML payload is as below: <Order> ...
2
votes
1answer
600 views

Passing parameters between tests with RestSharp

As I'm getting more familiar with the RestSharp client library for my API testing I'm confortable with using it for single API response checks e.g. checking a status code is correct, or that the ...
0
votes
3answers
128 views

Testing multiple API contracts as part of 1 test

I have a situation whereby, say, I have one API which creates an employee(POST); one which then returns the employee(GET) and one which deletes the employee(DELETE). I've been using RestSharp/C# to ...
1
vote
1answer
45 views

How to test API contracts when there is a dependency on data from an outside source

I'm after some advice regarding a project I am currently working on. There is a front-end, similar to what Amazon is like in that sales are fed through the site(there is no API for doing this). ...
1
vote
0answers
70 views

Consumer-driven Contract Testing

I've just come across the term consumer-driven contract testing and, working as a QA, was wondering a few things: What does this actually mean in laymans terms? Who would generally execute this type ...
5
votes
1answer
6k views

Assistance with a DELETE request in Postman

I'm attempting to create some API tests to assist with getting familiar with API automation and I'm using the really helpful Restful-Booker API for this. The API documentation is also here. However I’...
5
votes
1answer
137 views

Good strategies to test integration with multiple external providers

I have a single service that acts as "middle-man"/gateway between a few internal services and multiple external complex APIs, over 20 to 30+ different ones. I want to direct my testing efforts in ...
10
votes
4answers
19k views

API Testing tools in C#

I'm looking at writing at automated tests to cover regression testing in respect of Restful API's. I have familiarity with how to do this in Java using Rest Assured, however the company I currently ...
1
vote
1answer
285 views

SoapUI response: Integer range validation

One of my API's is returning, "minStudentAge":12 For a one API out put there will be 5 ,6 "minStudentAge" tags with different integer value. Is there any way to validate the integer value which ...
2
votes
4answers
185 views

Career path advice - microservices or APi testing

How to become an automation expert in restful api testing ? Is this similar to microservices testing or is that a different approach ?
0
votes
1answer
484 views

Testing NIFI: best practices

I do have new task related to test NIFI Apache. not sure where to start or how to. I have one thing in mind to test it as an API but the only response it sends is status code. I know also it has be ...
0
votes
1answer
95 views

API automation for a android App [closed]

I have to start API automation for a android App. App is coded in C++. Please suggest the approach as I am new to API testing.
1
vote
1answer
69 views

Should I test the created data after using Post Https Requests from Postman?

We are gonna use Postman to tests our API resources. When you create a Post HTTP request to your API, it returns success response and not sure if the data were created successfully and correctly. ...
1
vote
1answer
952 views

Comparison testing using karate tool

I'm using karate tool for api automation testing. Is there a way to do comparison or A/B testing using karate - That's testing with 2 urls and making sure both return the same response..please help ..
3
votes
4answers
3k views

How to create automation framework for automation of REST APIs?

Currently, I am using JMeter to automate APIs but I have been asked to form a framework that is quicker and convenient to use for everyone in the team and a framework that preferably involves reading ...
3
votes
2answers
952 views

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

I am getting unauthorized error for my HTTP request. I recorded the server side interaction of Android app using JMeter proxy script recorder. Only the login request is working, but the token is not ...
0
votes
2answers
3k views

How to get Embed link from Openload API after Remote upload? Selenium & Python

im trying to use Openloads API in python, i can do a remote upload like this: ol_url = driver.current_url resp = ol.remote_upload(ol_url) file_id = resp.get('id') Now i have a file uploaded in ...
2
votes
3answers
332 views

API testing single layer

I would like to start writing some API tests for one of our APIs, but we are seeing a lot of issues with stability of other APIs and I'm not really sure how to handle that problem. To clarify I have ...
0
votes
1answer
724 views

How to access the TestRail API behind basic authentication plus form based authentication?

I’m trying to access the API of TestRail (by gurock) on our self-hosted TestRail server (version v5.1.0.3413). To use TestRail, we have to login with basic authentication plus form-based ...
0
votes
2answers
8k views

How to pass parameters in body of JSON request with GSON builder

JSON example: { "locale": "abc", "passengers": [ { "address1": "xx", "address2": "yy", "city": "London", "county": "Test", "dateOfBirthDay": "2", "dateOfBirthMonth": "1", "...
2
votes
2answers
2k views

What is the best way to test API? [closed]

I am working as QA in a company. We create a client-server mobile application. Now I want to test our APIs via automation during my daily routine. What is the best way to test a RESTful API? Any ...
1
vote
2answers
1k views

How to extract rcAuth Token from header and POST as parameter to call an API

I'm automating email verification process, For that I have an API where I have to pass the emailID with the URL e.g.http://apiqa.somewebsite.in/api/v1/verify-email-qa/narendrarajput@gmail.com and have ...
2
votes
0answers
216 views

Laravel codeception api testing test structure

I want to test all my API endpoints with codeception. I started off with a more model-based approach: class UserCest { public function it_can_request_its_own_status (ApiTester $I) { ...
0
votes
2answers
1k views

How to run one Http Request between execution time of other two Http Request in Jmeter

I am Using Jmeter for load testing so i am little bit struck so here is problem i want run continuously (Http-request-2) getDriverLocationId in between Trip started(Http request -1) and Trip complete(...
10
votes
3answers
2k views

API test automation: GUI tool vs programmatic approach?

We have a Rest API written in C# and I need to investigate a good approach to automate the tests. There are 2 ways to automate API tests: GUI tool (e.g. SoapUI) Programmatic approach, using some test ...
3
votes
2answers
15k views

How to test Single Sign On (SSO) implementation?

Single Sign On (SSO) is being implemented on the application I work on and I have to QA this ensuring that nothing breaks due to the aforementioned implementation. The development side told us that ...
2
votes
1answer
1k views

How can I provide delay between dependent API calls dynamically in JMeter script

I want to create JMeter script in which some API calls are made only after the response to the API calls which it is dependent upon is received successfully. Is it possible in JMeter? And if yes then ...