Modify a Cucumber Feature name at runtime

30 views
Skip to first unread message

Deepak Rai

unread,
May 23, 2014, 2:12:46 AM5/23/14
to cucu...@googlegroups.com

Hi guys,

I have a calabash feature file:
Feature: First Test 
 
Scenario: Test in App
 
When I Open the app
....
....
....

I want to change the feature name at runtime. Prefix the Device Name at the beginning, which I will be passing via a ENV variable. I'll be generating the JSON report which would be consumed by the Jenkins cucumber plugin.
Finally the Feature name for various device's tested would look like:
Device 1 : Feature name - "Samsung Galalxy S3 First Test" 
Device 2 : Feature name - "HTC ONE First Test" 

I Could not figure out the way to modify the feature name at runtime. Could anyone give some information about this.

Help would be greatly appreciated

Thanks  
 

_____________________________________________________________
The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete it from your system. The firm is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
Reply all
Reply to author
Forward
0 new messages