microsoft / WinAppDriver

Windows Application Driver
MIT License
3.7k stars 1.4k forks source link

Can any one help me how to implement Feature Files in WinAppDriver using Java #1495

Open ravip20 opened 3 years ago

ravip20 commented 3 years ago

Currently I am using data files like Excel to read the data to do the automation in WinAppDriver using Java. For example, If I input the number in the edit box then I am reading that number from excel. So, instead of reading Excel, I need to implement using "Feature Files"/Given - Then Could you please help me how to implement this in WinAppDriver using Java.

liljohnak commented 3 years ago

Really not sure what you mean. Do you have a code example?

ravip20 commented 3 years ago

We did a POC using WinappDriver for a desktop application automation with JAVA, we are using Excel for test data to execute automation scripts. Now we are planning to implement feature file (Cucumber) and here are the questions

  1. How can we implement feature file concept (Given, When, Then)
  2. How to generate step definition file to implement logic to execute the automation scripts?
  3. Is any example code-base to understand with feature files (cucumber)
anunay1 commented 3 years ago

have you checked this https://stackoverflow.com/questions/31941689/how-to-read-excel-file-in-cucumber-project