vendredi 19 décembre 2014

How to create a variable in env.rb or hook.rb and call in cucumber feature ?

Thank you in advance for help.


I am trying to create variable in env.rb



File_path =("#{File.dirname(__FILE__)}/../../features/TestData/Testdata.html")


and call File_path in the Cucumber feature directly.



for example
...
And I upload a file from path "<File_path>"
...


Is the is a better way of doing this ?


Aucun commentaire:

Enregistrer un commentaire