4,734 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
62
views
Karate Framework # Unable to read the data from JSON while using JSON Array Data Source using read() and karate.setup()
Problem Statement: I am trying to read a Json file into my feature file. This Json contains multiple Json Objects as payloads as shown below. Once I can read, I want to pass that Json Payload as input ...
1
vote
0
answers
43
views
Is it possible to check tooltip when mouse is hovering?
I want to check a tooltip when setting the mouse over a button.
My button class is com.intuit.karate.robot.win.WinElement (used getClass())
I can check the tooltip content (property HelpText), I can ...
0
votes
0
answers
39
views
How to pass ignoreHTTPSErrors: true using playwrightOptions in Karate Test Framework?
I have tried a couple of combination below to set my driver config in karate but nothing seems to work for me. I'm still encountering the error shown below.
{
type: 'playwright',
...
0
votes
1
answer
53
views
Karate picking native chrome instead of chrome when class path is used. No issue when full path is given
Feature: Open Swag Labs login page in Chrome
Background: Browser Setup
configure driver = { type:'chromedriver, executable:'classpath:BrowserDrivers/chromedriver.exe'}
Scenario: Open Swag ...
1
vote
1
answer
58
views
Karate test feature file does not handle string concatenation for JS function call
I have a karate test feature file like below and I am doing a string concatenation in the first column of scenario examples. This works fine in all my other feature files.
But when I try to pass the ...
1
vote
0
answers
33
views
Variable substitution in Examples - Karate
Karate 1.1.0 supports dynamic variables in Examples:
Scenario Outline:
* call read('classpath:View.feature')
Examples:
| read('classpath:testdata/'+ env + '/view.csv') |
reading env ...
0
votes
1
answer
105
views
Removing information from callArg in karate-json.txt report
I am looking for a way to remove information from callArg inside the karate-json.txt report file.
See the following simplified example of karate-json.txt report:
{
"failedCount": number,
...
1
vote
0
answers
41
views
Karate image comparison ignore antialiasing causing index out of bounds exception
When attempting to compare two images in karate via the compareImage keyword (or karate.compareImage() function) with the ignoreAntialiasing option set to true like so:
Background: Setup
* def ...
0
votes
1
answer
63
views
Karate Testing Framework - What do the licences and pricing tiers contains? [closed]
I use old karate versions in some (commercial) projects, version 1.3.1 and 1.4.1 respectively.
Now I am not sure, if we can upgrade to the (at the time of writing) most recent version 1.5.1 (https://...
0
votes
2
answers
62
views
Karate - How to insert dynamic array in a json variable
I try to include a dynamic array in a json variable and it fails.
hostsArray is dynamically built
# sample of hostsArray
* def hostsArray = '[{"hostid": "1234"},{"hostid"...
1
vote
0
answers
78
views
Karate 1.5.1 custom HttpClientFactory (PSK-TLS) works in IntelliJ but fails with SSLHandshakeException from command line
`I recently upgraded a test automation project from Karate 0.9.6 to Karate 1.5.1.
In 0.9.6, I was using karate-apache for my custom HTTP client implementation. Since karate-apache is no longer ...
0
votes
0
answers
47
views
Karate UI tests failing with connection refused and exit code 137 when running Chrome
I’m running Karate UI tests (Karate 1.5) with type: 'chrome'.
The non-UI (API) tests run fine, but the UI-based tests frequently fail with:
[WARN] [com.intuit.karate.shell.Command.run] - exit code was ...
0
votes
0
answers
36
views
mixed values in 2 scenarios in 1 feature
I have the following problem: I have two scenarios in the feature file.
In scenario 1, I create a new product and, to simplify things, I test:
After the POST request, I save:
def productId = response....
1
vote
1
answer
59
views
Karate Framework variable resets to last def keyword step and ignores conditions after calling another feature file
In the following code example, we declare and initialize a variable then conditionally change it's value, after that we call on another scenario with no interest in passing this variable down to it or ...
1
vote
1
answer
53
views
How to completely disable video recording in Karate Docker CI execution?
I’m using Karate for UI automation and running tests via Docker in CI.
My configuration is as follows:
karate.configure('driverTarget', {
docker: 'karatelabs/karate-chrome:1.5.0',
showDriverLog: ...