karate Questions
2
Solved
So I've managed to write a bunch of tests and in every feature file I set the same request headers.
For example:
Given url appUrl
And path '/path'
* header Accept = 'application/json'
I'd like...
Fedak asked 6/2, 2019 at 22:1
2
Solved
New to Karate & Azure. Just created few API tests using Karate and easy simple. Want to take it further adding it Azure pipeline.
Found few links that just points to add pom.xml and maven from ...
Ent asked 13/8, 2020 at 17:4
3
Solved
I'm trying to print value on console but I don't see any value
snippet of code
And prepresp = response.event.txn_count
Then print 'count is : ', response.event.txn_count
Then print 'count is : '...
2
Solved
We have a feature A with several scenarios. And we need one scenario from that file. Can we call it in our feature B?
Cryptic asked 22/9, 2017 at 19:43
3
Solved
I have additional settings that I need to pass to Karate when running via Maven that will be available in karate-config.js. Currently I can pass in a string using the karate.env property - is it ne...
Composition asked 10/10, 2017 at 16:47
2
I have been googling about using Cypress for Automation API testing. I found below links:
Example: Cypress Real World App - API Testing
Docs: API Testing
Blog: Add GUI to your e2e API tests
...
Homicidal asked 13/10, 2021 at 6:56
2
I want to write some test against an REST endpoint which is using a callback parameter. Might sound confusing so here's an explanation:
first call is a POST to /publish with the payload:
{"callb...
Sunlight asked 28/10, 2016 at 19:14
2
Solved
Suppose I have saved followings functions in a Utility js file.
function getCurrentDate(){
return 'date';
}
function getMonth(){
return 'Oct';
}
Please help me how any of these methods can be ...
Metaxylem asked 29/10, 2017 at 12:13
2
Solved
Currently I'm trying to run our functional tests (about 300 requests) with 10 users in parallel using gatling-plugin
mvn clean test-compile gatling:test -Dkarate.env=test
with the following .mvn...
Endblown asked 18/12, 2019 at 12:35
2
KARATE : can not see print statements on console in karate
I am unable to see print statements on console when I write print statements in feature file using javascript
here is my code :
Sce...
Prowess asked 13/9, 2018 at 18:58
2
Solved
On trying to store a value from response in a variable ,to use it for the next post call and facing "no step-definition method match found for: def referenceId= response.referenceId" this error.
F...
Donetsk asked 5/7, 2019 at 15:2
2
Solved
Trying to pick up the right combination of chrome options to disable annoying Password Manager popup after passing login form.
Here is how I create a driver:
Feature: Driver initialization
B...
Ortega asked 17/9, 2020 at 15:58
2
Solved
I have scenario which tests an Micro service.
Scenario Outline: Run Object Queries
Scenario Outline: Run Object Queries
Given url homeLinks.queryUrl
And header Content-Type = 'application/x-www...
2
Solved
I have a JS project that provides a set of endpoints leveraging Express with a typical express/router pattern.
const express = require('express');
const router = new express.Router();
router.post...
Outofdoors asked 30/1, 2020 at 0:34
1
I am using karate for automation and I have to use oauth 1.0 authentication which has 4 fields that are token, tokensecret, consumerkey, and consumersecret. I could not do it with karate. Cou...
Younts asked 31/10, 2019 at 5:54
1
I am trying to run gatling with karate in gradle build and getting below error,
/smoketests/SmokeTestRunner.java:19: error: package org.junit.runner does not exist
import org.junit.runner.Ru...
2
Solved
I need to perform two operations on the result of JSON responses.so can we have those different operations inside single JS file? or do we need to have mapping like one JS file for one operation.
P...
Johnny asked 20/3, 2018 at 10:36
2
Solved
I'm trying use karate for e2e tests and have started with a minimal setup. I want to create some config items in karate-config.js for use in the tests but karate is reporting that file is not a js ...
1
Solved
We have a Spring MVC application, Is it possible to integrate spring context in Karate ? .Say bind the SpringJunitRunner through the Karate runner. Or to lookup the bean by spring context ?
1
Solved
I'd like to incorporate GitLab CI into my Karate testing. I'd like to loop through my tests with different user names and passwords to ensure our API endpoints are responding correctly to different...
1
Solved
For our project requirement we have to run the feature file using 50 users .
For now I am able to run using one user which is configured in the karate.config file.
I need to configure these 50 user...
Baldwin asked 8/10, 2018 at 12:30
1
Solved
I saw details about OAuth2 in Karate Demo. Can you also provide how to implement Basic Auth?
Leftward asked 9/7, 2018 at 11:42
1
Solved
I have the following scenario that matches the response against a multi-line expression that contains a variable. This variable is defined in karate-config.js and is present because the test succee...
Augustaaugustan asked 17/4, 2018 at 20:54
1
Solved
While using Karate we were able to do most of the validations for web services, we were able to successfully integrate Karate with Selenium webdriver and do DB assertions using java classes. For DB...
Capacitor asked 13/12, 2017 at 14:44
2
Solved
The karate header examples do not show how to access config values other than baseUrl. When I switch environments (passing in -Dkarate.env=qual as part of the run command) then baseUrl is set corre...
Heft asked 23/11, 2017 at 0:47
1 Next >
© 2022 - 2024 — McMap. All rights reserved.