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
-1
votes
1 answer

In API testing, Status code returns 200 but in response body code returns 201, 500 codes?

Status code : 200 Actual Response: { "code":500, "error": "error inserting" } , { "code:201, "message": "created successfully" } Is this a correct response or status code should be same as in response body?
Prithvi
  • 1
  • 2
-1
votes
1 answer

hyphen is not accepting in karate UI automation

I am trying to enter some value in text box using Karate UI automation using the below command And input("textarea[class=ace_text-input]", 'index = "int_rtrapp-dev_k8s" container_name="rr-hebeat-inbound" "' + tracID + '"') In the above command…
sarath
  • 455
  • 1
  • 11
  • 26
-1
votes
1 answer

How to provide relative path in Include controller in jmeter for test fragment

I have two thread groups from that in one thread I have two include controllers. but I want to provide relative path instead of absolute path so anyone can use this project in their system. as I am uploading this on GitHub. enter image description…
-1
votes
2 answers

How rest assured works internally ? What is the architecture of Rest Assured?

Can someone please explain how rest assured works internally on performing the API testing. I am just aware that it uses Groovy under the hood. Basically, I would like to understand the architecture of Rest Assured in detail. Thanks
MrNolan
  • 154
  • 1
  • 4
  • 13
-1
votes
1 answer

The script recorded from Jmeter has a body in encrypted format, how can i parameterize it?

I have recorded a script via Jmeter's test script recorder. The website belongs to the banking domain and has a simple web form which i have to fill and click on submit button, that's it. No login is required. The problem is when i have recorded…
-1
votes
1 answer

Why I am getting Unexpected token error while automating REST API in SOAP UI using Groovy

Here is the script that I am using: import.groovy.json.JsonSlurper def response==messageExchange.response.responseContext def json = new JsonSlurper().parseText(response) assert…
-1
votes
1 answer

How to enable CORS in AngularJs?

I am trying to consume a ZOOM API POST method using angularJS: /webinars/{webinarId}/panelists When I run the solution locally, my angular controller, returns an error: Zoom provides the code to be implemented to be able to, through the end point,…
-1
votes
2 answers

How to Display Json Array Response body in console using Rest Assured concept

[ { "bookId": 8, "bookName": "social", "authorId": 7, "authorName": "Ram", "publisherId": 6, "publisherName": "potho", "genre": "nature", "price": 1000, "numberOfPages":…
-1
votes
1 answer

Can we change system date using jmeter?

I have some set of api's before executing them i need to change system date every time. Is there any method to change system date in jmeter?
MUSADDIK
  • 1
  • 3
-1
votes
1 answer

I need to keep the test alive for min 30 minutes without time out

I have a test scenario where I need to upload a large file via api, and it approximately takes 30minutes, how can I keep the test alive and wait till the response is thrown back ?Currently i added some waits but I am sure expectedConditions / waits…
Mano Kugan
  • 207
  • 6
  • 23
-1
votes
1 answer

Fetching data from an API, and using it as payload into a POST call

I have this test scenario where I need to fetch details from an API, write it to a file , make updates to a JSON array and update the file use the new file as a payload. I've been able to do the first two steps but not able proceed in the…
demouser123
  • 4,108
  • 9
  • 50
  • 82
-1
votes
2 answers

How to open the old https message request in PhpStorm

I really like the cool feature "stratch file for http request" in PhpStorm. I use it a lot. Each time I ran any GET request, there is a JSON file createed with the result and I can see the file name after the request as follows: GET…
Md Monjur Ul Hasan
  • 1,705
  • 1
  • 13
  • 36
-1
votes
1 answer

Unable to parse JSON, Showing error message "JSONObject["other"] not found"

Below is the code snippet for the utility which I've used to fetch data. Below are sample JSON in which I have to fetch the value of Other/Vehicle/Properties, but I'm getting an error message. Please suggest what things I need to add to the…
-1
votes
1 answer

Rest Assured - JsonPath - I need two values to extract at the same time based on condition

I'm facing difficulty in extracting the values using JsonPath. Here is my json, applications:[ { "ab": 123, "isReady": true, "proId": 234 }, { "ab": 345, "isReady": false, "proId": 098 }, { "ab":…
Shr4N
  • 435
  • 3
  • 18
-1
votes
1 answer

How to add the vertical pipes we see in Examples feature of the Scenario Outline in SpecFlow

I would like to add the vertical pipes so that I can have my data table down there under "Examples" feature in Specflow. Anyone to give me any tip so I can go through it?. My scenario outline looks like: @mytag Scenario Outline: Check Noun…
J.FromHeaven
  • 343
  • 3
  • 9