All Questions
Tagged with web-api-testing selenium-webdriver
21 questions
1
vote
1
answer
2k
views
Playwright API tests time out and fail over corporate proxy
My Playwright UI tests (which use page, not request) work fine. Only the API tests are failing. For example const response = await request.get('https://reqres.in/api/users/3')
I found that it must be ...
3
votes
0
answers
448
views
Why multiple tests are not allowed in robotframework-datadriver while using csv file.. is there some workaround?
Problem Statement:
I want to have 1 robot file with 3 Test cases
1st test case would not use any Test Template
2nd test case would use a Test Template using Variables in 'Variables' section so as to ...
0
votes
0
answers
176
views
How to find JSON path if the JSON tree has unique Key in the path of Key whose value is to be extracted?
I wanted extract value of first "jobId" but "76ff0515-a200-444a-b5b3-e81e81360b75":" this value is updated every other day.
Can somebody help me in writing JSON path for ...
0
votes
2
answers
1k
views
What is the best Rest Assured alternative for Python API testing?
In Java, we have Rest Assured for API testing. In python, what are the best possible alternatives?
1
vote
1
answer
6k
views
I want to get orderID from API response using selenium python
I want to get the order ID from the API response. When I click on the Create Order button it will send a POST API request and return the unique ID that I want.
This is my order creation code.
from ...
1
vote
1
answer
705
views
How to parametrise a single Cucumber API test Scenario with Multiple Json request in KARATE framework
As of now, I have a single cucumber scenario which runs with a json file with single API request. I want to run the same scenario for multiple API request using same json. So I can verify multiple api ...
0
votes
1
answer
1k
views
Unable to find the duplicate elements from API response
We were testing an API and recently got an issue, some of the customers cannot log in to the website.
We found the issue and it is because of Duplicate keys in the API response, it is giving response ...
1
vote
1
answer
146
views
How can i use logical OR for json array response
I have a scenario where response of a API is JSON array. Below i have given an example of JSON response where 'test' is key which is available across the array. So i have to write to Feature step ...
0
votes
2
answers
2k
views
UI Testing with REST API
I have one requirement in Automation to test UI and APIs at a time. Get parameters from the UI and pass them to API and get response.
Steps are like:
Step 1: Enter text in the search field
Step 2: ...
1
vote
1
answer
2k
views
Attaching a log file to an Azure Devops Test Run
I'm trying to attach the log file that I have generated, during the run of my automated tests in the Azure Release pipeline. I am running Automated UI tests using selenium and MSTest. Originally, I ...
10
votes
2
answers
2k
views
JEST - why mock api calls?
I'm getting familiar with JavaScript testing, and may be missing a point or two related to mocking api calls. Every tutorial I have found mocks api calls when doing unit or integration testing - ...
3
votes
2
answers
3k
views
How to pass data across cucumber steps (Test Automation rest assured API test)?
I have created an api test which hits an endpoint and receives a response back however I'm struggling to use this response within another cucumber step.
My first step uses the following method:
...
2
votes
1
answer
1k
views
How to export response into a file or validate the tag value with the help of Karate Framework
I'm using the following feature file and it generates the response. How can we store the response into an XML file instead of showing the console?
Feature File:
Feature: Test soap end point
...
-1
votes
1
answer
2k
views
How to validate SOAP service XML file with given XML using Karate
I'm learning Karate API for executing our SOAP-based web services. For that, I have created two XML files in which, one is, request information and another one is response data.
And then I have ...
0
votes
0
answers
688
views
API requests and security tokens writing Selenium tests
I have recently started writing Selenium tests on C#. Some test setups create users calling API before interaction with UI. Implementing security requirements developer added a request verification ...