Serenity+Cucumber: Reading testdata from Excel -


i running automation test cases @runwith(cucumberwithserenity.class). want expose , maintain testdata separately in excel sheets instead of placing in feature files.

the template excel testdata looks like:

|scenario |username |password|name     |address|city    |pincode| |testcase1|testuser1|pass1   |testuser1|us     |jersy   |12345  | |testcase1|testuser2|pass1   |testuser1|us     |virginia|78955  | 

we have chose use primary key 'scenario' present in both feature file , excel sheet , based on read specific row excel , refer specific row data testdata particular scenario.

questions:

  1. is there way scenario name @ run time feature file when test running, can excel sheet extract data excel sheets?
  2. is there default way/method available in above mentioned use case, can use above use case?

cucumber doesn't support external sources design (it collaboration tool, not test automation tool). in serenity, can build parameterised junit test gets data csv file: http://serenity-bdd.info/docs/serenity/#_using_test_data_from_csv_files


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -