Questions tagged [api-testing]

API testing is a type of software testing that involves testing APIs directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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-...
1
vote
1answer
61 views

Schema Validation in Postman

I'm having trouble validating a schema in Postman using tv4 inside the tests tab - it is always returning a true test, no matter what I feed it. I am at a complete loss and could really use a hand - ...
0
votes
0answers
54 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
1answer
71 views

How to remove keys from rest-assured ValidatableResponse and assert response with constant json string

In rest-assured test cases I am getting mentioned 'ValidatableResponse response' where I want to remove keys such as "updated_at", "deleted_at", "created_at" and "notice" and assert this object with ...
0
votes
1answer
41 views

Test if an API Service is available

I'm creating a test suite for a test that should check that a specific API Service is available. So I'm confused on exactly how I can check the availability of a service. Is it sufficient to only ...
0
votes
2answers
18 views

Jmeter 1 Thread Group and Multiple HttpRequest

I have the following Jmeter configuration where I have 1 Thread Group with Number of Threads 1 and under this 4 HttpRequest I have defined. The loop count is forever. My question is how will my ...
0
votes
2answers
50 views

Automation data setup: via SQL or via APIs?

I've had this discussion recently and would appreciate some more opinions and experiences of this community. When setting up data for integration tests (API or UI), is the favored approach via SQL or ...
1
vote
1answer
35 views

Error showing for url when try to run api test script with Newman

I'm beginner to REST API testing. I wrote some scripts for some scenarios using postman and tried to run with Newman. (In there URL defined as environment variable.) Showing errors for that URL when ...
0
votes
1answer
20 views

How to perform page load for page with API in it?

I have tried RESTAPI testing for few projects, but I have a task now to perform concurrency testing/ load test of a page. When I inspect the page load in chrome >> Network tab, it shows one Index ...
0
votes
1answer
51 views

Automated End-To-End-Testing: Generate API calls via swagger or make them hardcoded?

We, the test automation team, are currently implementing end to end tests. We use the API of the backend team for the setup of the end to end tests, which run via UI. Should we use the swagger file ...
4
votes
2answers
123 views

Is it okay to use UI automation code in API automation tests?

Say that I am testing a GET api. The get api fetches data which is stored due to user actions on a web UI. The data cannot be setup by simply looking at the network inspector calls for these actions ...
1
vote
1answer
690 views

How to get number of requests sent and actually received by server in JMeter

I'm using Jmeter in remote env.(1manager server, 3-5 querying servers, 1 target server). I have fixed EPS/QPS and threads(gradually increasing up to a certain value). I want to know if there is any ...
0
votes
2answers
4k views

How do I implement Extent Reports in my rest assured api testing framework?

I have recently started rest assured to automate apis. My current framework folder structure has an ApiTestCases class in a folder under src/test/java I have a testNG suite xml to run the tests. How ...
-1
votes
1answer
47 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
1answer
778 views

How to get Code coverage via external rest assured API automation using jacoco?

I have a multi module application "Project A". This application is hosted in clustered app nodes using tomcat as web server. We are using Spring, Web Services as primary among many other technologies ...
0
votes
3answers
89 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 ...
0
votes
0answers
69 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 - ...
-2
votes
1answer
77 views

OWASP ZAP integration into SOAPUI for REST API Testing

One of the topics I am currently working on is the testing of APIs on the security level, e.g. as integration in SOAPUI and OWASP in WSO2. The integration of SOAPUI and WSO2 is set up and also works. ...
-1
votes
1answer
25 views

Login call should hit before every call in Jmeter

In my projects' auth token, I can use it once then it expires so obviously other calls are also failing. All the sub calls are configured in the csv file(s), tied with multiple jmx file integration ...
2
votes
1answer
615 views

How to test oAuth Authentication?

We are making a mobile application that will be communicating with the backend, which also we are building. Authorization of users and application itself with the backend is going to be made using ...
0
votes
0answers
31 views

How to remove keys from response json and hold remaining json data in an object using java 8 lambda expressions for rest assured test case

In REST-assred test case I am getting ValidatableResponse body as mentioned from which I want to remove notice, created_at, updated_at and deleted_at keys using java 8 lambda expressions and assert it ...
1
vote
2answers
43 views

How to identify a specific location in returned Json through a postman test

When submitting an order to an API we get a Json response containing: "AMLResults": [ { "amlResult": [ { "addresses": [ { ...
0
votes
2answers
982 views

How to verify response body as a test in postman

I want to verify the response data as a test using Postman. For example, given the response below: { "data": { "id": 2, "first_name": "Janet", "last_name": "Weaver", "avatar":"...
0
votes
1answer
80 views

Testing REST api with postman

I am very new to this, so I am approaching it like I would test a sign up form for instance. I have a Rest interface exposed for testing operations: Getting all users, getting users by id, searching ...
0
votes
1answer
44 views

Eclipse C++ Unit Testing without Unit Testing framework

I am looking for some ideas on how to implement a Unit Test framework without any existing unit test tools like Google Test Runner. I am on a closed network without internet access and so whatever ...
3
votes
3answers
120 views

The scope of automated API testing for a SQA tester

My situation: I am creating automated tests for testing a server's API endpoints. It is connected to a database and making requests to its API endpoints can result in it grabbing data from the ...
0
votes
1answer
82 views

Is it a good practice to compare responses with benchmark responses in API Test Automation?

Is it is good practice while writing automated tests for APIs to compare the complete response of the requests with a benchmark response instead of writing specific tests to verify the required values ...
1
vote
3answers
491 views

Unit Test - Testing API Methods

I was reading the following article Unit testing an API This article is about unit testing an API and the methods on a class through the interface. What I do not seem to grasp is the fact that in my ...
1
vote
1answer
83 views

Testing specifics of GraphQL API endpoints

I'm used to testing "regular" REST API endpoints on daily basis, but currently I got into my first GraphQL API endpoint and I'm wondering are there any specifics that I should be aware of that are ...
0
votes
2answers
935 views

Deserializing JSON response using RestSharp

I'm looking for some general advice with an API framework I am setting up using C# and RestSharp as the client library. I've successfully set up an initial test, but I'm now looking at creating a ...
0
votes
1answer
281 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
47 views

Is it necessary to write test cases for different test levels?

When creating test cases after unit testing(done by developers) QA team starts working on component testing. For component testing level there will be test cases written by the QA's When it ...
1
vote
1answer
7k views

PostMan gives “JSONError: Unexpected token '<' at 1:1 <!DOCTYPE html> ^ ” when trying to extract data from response body [closed]

I am trying to chain API request on using POSTMAN. I am writing a script in the test section for extracting token from the response body and storing it in an environment variable. This is my code in ...
1
vote
1answer
39 views

For my POST method i used Threads User multiple but actually when i run jmeter record will added only single time

I have created Thread Group with 5 number of users, but in actual when I run my POST method then record add only single time, but I want to add 5 records in a single run to check performance for POST ...
1
vote
1answer
677 views

How to run samplers sequentially in JMeter while running samplers by throughput?

I have ~10 scripts in my Test Plan which are dependent. (e.g. the 2nd request couldn't be passed if the 1st request is not passed - it is restriction of functionality) My goal is to run JMeter ...
2
votes
4answers
111 views

Diff between Integration(written by dev) and End to End testing(written by qa)

Recently, I was in conversation with a developer, developing an API. We had a conversation appertaining to testing of that API, while I told him we will test the end to end flows of API using ...
1
vote
3answers
141 views

Advice on API Mocking Tools

I was interested in hearing peoples experiences of using mocking, specifically for API testing. Whilst I’m (fairly!) well versed in automation techniques now, I haven’t yet used this approach but ...
1
vote
2answers
4k views

Best practices for rest-assured api automation testing

I am working in a rest-assured tool to automate API's. I am using java language. I did a sample API automation. I want to improve. So I want to know the best practice for rest-assured API automation. ...
0
votes
1answer
223 views

Rest assured API to get a element from Json response

I'm using restassured.path.json.JsonPath extractor From the below response I would like to extract the customerProductIdentifier where highLevelProduct is HSI, { "recordsChoice": [ { ...
3
votes
3answers
137 views

How to provide more value from test automation to Dev/entire team?

Working primarily as UI test automation engineer, what further steps one should take to be more valuable & useful to the Dev team. How one take automation to a level where it becomes an handy ...
6
votes
4answers
216 views

How do you test, auto-logout after 60 minutes?

Our system implements that the user with out activity for 60 minutes should be logged-out of the system. How do I test this? Do i need to test it manually? Wait for 60 mins? Is there a tool that I ...
1
vote
1answer
673 views

Send few api calls in parallel and rest serially in Jmeter

I have to create performance test cases based on views in UI, for example one view makes 2 api calls in parallel and third one is called after first 2 have finished. I am going to have multiple views. ...
0
votes
2answers
74 views

How should I design test automation project by including UI testing, DB testing and API testing components?

We are planning on revamp for an old system. Also previously we haven't done any test automation tasks too. So my plan is to start the automation project earlier for the existing system and give a ...
1
vote
1answer
69 views

When to automate an api test?

I am testing a GET "xyz" API which is one of the many apis needed by a web UI. We need to setup some data before we test xyz. It can be done by using other apis like "abc" or by web UI. Both ...
5
votes
2answers
782 views

Using SuperTest/Protractor on unsecure HTTPS

I am trying to run automated API tests on localhost with an invalid cert. Is there a chromeOption equivalent to "Proceed Anyway" that I can pass to the tests so they can get a response from the url? ...
0
votes
2answers
105 views

How to decide Test Cases for API vs GUI Automation

Please help me understand, if I am trying to implement Test Pyramid and have automated good amount of API tests, how do I decide what all needs to be automated using the GUI now and what all can be ...
1
vote
1answer
92 views

NullPointerException in RequestSpecification

Getting Null pointer exception whenever running, unable to resolve. Below is my code public static RequestSpecification setFormParam(String formParam, RequestSpecification reqSpec) { ...
1
vote
2answers
30 views

Should I obtain data required for particular test case using appropriate endpoint or read it directly from the DB?

I am implementing automated tests of the system that consists of many microservices. To verify appropriate behaviour of the endpoints using POST and PUT methods, I need to obtain some data (for ...
0
votes
1answer
2k views

How to randomly generate email address on postman request using pre-request script

I am new with Postman > Pre-request Script, Can you help me create a random email value for my API Request. Thank you in advance.
1
vote
1answer
2k views

Jmeter Data Compare for functional testing

How i can compare two dataset return from diffrent operation in Jmeter ? First data returns from JDBC PreProcessor - Declear variable StCode and data returns in below mention format StCode_1 = abc ...