Reputation: 15
I am try to integrate the karate with #Appian low code platform application UI, facing some issue
Can any one give the solution to pass the data dynamically in ui automation
Upvotes: 1
Views: 144
Reputation: 15
I found one solution
We can pass our information like Scenario Outline and Examples format What we do as formal cucumber command
@tags1
Scenario Outline: Login with demo
Given driver "https://www.saucedemo.com/"
And input("//[@id='user-name']","")
And input("//[@id='password']","")
And click("//*[@id='login-button']")
Examples:
|username|pass|
|standard_user|secret_sauce|
|locked_out_user|secret_sauce|
Upvotes: 0
Reputation: 66
respond to failed to pass the dynamic data (except hard codded data)
you can try this, it worked for me
data.json
{
"username" : "ABC",
"password": "ABC@123"
}
Feature file:
And input('input[name=un]', username)
And input('input[name=pw]', password)
Upvotes: 1