You can add qaf-cucumber dependency and it will enable you to use examples from external data providers like xml,json,csv,db,excel. Once you add dependency your scenario can use example form external file and may look like below:
@dataFile:resources/logindata.json
Feature: To test login of FreeCRM
Scenario Outline: login test
Given user in login page
When title of page is freeCRM
Then user enter <username>
Then user enter <password>
Then user click on login button
And user is in home page
Json data file:
[
{ "username" : "test@gmail.io" , "password":"123abc123" , "isvalid":false },
{ "username" : "Admin" , "password":"test" , "isvalid":false },
{ "username" : "admin" , "password":"Admin2193" , "isvalid":true }
]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…