Wednesday, November 18, 2015

2015.11.17/18

In these two days I learned about Feature files more and more. There I got to know
  1. How to set parameters in to feature files.
  2. How to set data tables in to feature files.
  3. How to create step definition files for drop down selection and radio button selection.
  4. How to create step definition files for quick search button.
Parameters are helpful to decrease the number of step definitions files in a feature file. Parameters and data tables can be defined in the feature file itself.

When I am executing those features into my feature file, actually there I have faced many problems. Some times step definition files could not understand what I am saying using parameters. So I have to be careful when selecting parameters. According to my knowledge that I have gained through these materials, I have realized and guessed that we can set parameters for those who have "id" element for meanwhile I am finding web element. Other web elements could not read my step definition files with "class name".

When I am setting drop down list selection for feature file, there I have to import java select 'api' for my step definition file. If not the code will generate an error.

I followed online materials for learn about feature files further more.
http://www.toolsqa.com/selenium-webdriver/checkbox-radio-button-operations/

http://www.toolsqa.com/selenium-webdriver/dropdown-multiple-select-operations/

http://stackoverflow.com/questions/8051402/how-to-check-a-radio-button-in-cucumber
The following images will shown data table execution.

No comments :

Post a Comment