Karate Beginner Tutorials 9, Config File Demo
All FREE courses Today we will learn: What is How to create How to use Multi environment testing What is Karate uses a configuration file named Can be used to Store global variables Configure execution environment, base URLs, Timeouts etc Karate reads this file before executing any scenario How to create file Step 1 Create a new file in src, test, java Step 2 Name is Step 3 Create JavaScript function and add configuration contains a javascript function that returns a JSON object The Key Values defined in the JSON object are available to all feature files function fn() var config name : test123, baseURL : reqres. i. .., RaghavPal , karateconfigurationfiletutorial, karateautomationtestingforbeginners, apitestingtutorialforbeginners, apiautomationtestingtutorialforbeginners 20210604 QyLXiJsrOiE
|
|