Questions tagged [web-api-testing]

Web API testing is the functional testing of HTTP based services.

Testing can include verification of domain related behavior and/or compliance with HTTP specified application behavior as described in RFC 7231.

787 questions
0
votes
1 answer

Read Excel data .csv file sequentially in Jmeter

I have a scenario to use data from each row for validation using a HTTP Request. have tried with the CSV config but it reads the first row only for the iteration. I have a single iteration and all my samplers are in a single thread group. The data…
Vittal
  • 79
  • 1
  • 4
  • 10
0
votes
0 answers

How to test empty string and space requests in soap ui?

I want to test following soap ui test scenarios.How to send those requests?I feel both scenarios are works similar in soap ui? test1 request empty name parameter - name="" test2 request name parameter as a space - name=" "
user2020261
  • 67
  • 1
  • 1
  • 4
0
votes
1 answer

Anybody know how to use pyresttest's 'fixed_sequence' generator?

I'm trying to use pyresttest's benchmarking framework to generate a sequence of entries in my flask_sqlalchemy-based database. I would like to read input values from a pre-defined list as advertised by this framework's benchmarking generator type…
kip2
  • 6,473
  • 4
  • 55
  • 72
0
votes
1 answer

Jmeter - Ramp Up Time vs Constant Timer

I am trying to create a scenario where I need to hit an API with 200 unique hits(in my case 200 loan numbers). I need 10 hits at a time for every 5 seconds I used below values to generate above scenario Threads: 200 Ramp UP: 300 Loop:…
0
votes
1 answer

I want to verify that the 'questionId' is a number. How to verify it using groovy script?

Part of json object as below, need to extract questionId and check whether it is number: { "rootProductQuestionId": "17", "questionAnswers": [ { "question": "", "questionId": "17", "answer": "" …
Abhram
  • 49
  • 1
  • 1
  • 6
0
votes
1 answer

Create URLs dedicated to integration testing

Trying to test a simple feature which is contained in a very complex feature. The simple feature requires multiple steps before it can be launched. These steps have many consequences on the database, but they don't have any interaction with the…
Steve Chamaillard
  • 2,289
  • 17
  • 32
0
votes
0 answers

Centralize updation of definition in SOAP UI

I've done automation of API testing in SOAP UI. I've added API request in test step for my test cases. Now after completion of API testsuite, if there is any change in request parameter like new parameter added or removed then how do I manage…
0
votes
1 answer

Best approach to deserializing this API response?

When deserializing an API response, when saving a new course I am returned the following: { "Error": false, "Message": "Course was saved successfully", "Result": "1", "DataReturn": null } Which I deserialize to the following…
symon
  • 670
  • 1
  • 7
  • 20
0
votes
0 answers

Is it acceptable to have JSON int/long as Strings for the purpose of API testing?

Consider I have a course object public Course(int id, String name, String description, int thumbnailFileId, int locationId, boolean deleted) { this.id = id; this.name = name; this.description = description; …
symon
  • 670
  • 1
  • 7
  • 20
0
votes
1 answer

PUT is not allowed - REST Assured with Swagger

I am running API Tests using REST Assured and Swagger, using the Swagger Request Validator package of Atlassian (https://bitbucket.org/atlassian/swagger-request-validator) I experince weird problem trying to test some PUT Api: given() …
YogevAbr
  • 289
  • 3
  • 18
0
votes
1 answer

RestAssured Cannot make containsString work

This is the response (sort of) { "Cats": [ { "Code": "XXXX", "Ven": { "Description": "Any" }, }, "Rate": { "Actual": { "Amount": "XXX", …
PGS
  • 3
  • 2
0
votes
1 answer

Using python and API to download web rankings data

I am attempting to use Advanced web rankings api to download rankings information. import requests #enter data for request URL print('information for URL creation') #getProjectName projectName = raw_input('ProjectName') #getApiToken apiToken =…
0
votes
2 answers

Testing Node/Express API with Mocha/Chai

I am currently trying to test my node api w/ mocha chai. I am running into a scenario where a test should actually fail but is passing. I have a repo up of the current API that I am building here if you want to play around with it: enter link…
Nappstir
  • 995
  • 2
  • 20
  • 38
0
votes
0 answers

How to parse data from GET request in POSTMAN

Can someone help me understand how to correctly reference and parse the data from a GET request in POSTMAN? I am sending a GET request to get the following response: [ { "merchantId": "abcs", "productId":…
user3281103
  • 129
  • 12
0
votes
0 answers

how to : intercept the request body from rest-assured

I want intercept the request body and request headers before the reuqest sended from rest-assured(http://rest-assured.io/). But i'm not fund a method? somebody help me ?