Can we pass a variable to cuke runner class file?

138 views
Skip to first unread message

Amit Sharma

unread,
May 1, 2014, 1:53:48 AM5/1/14
to cu...@googlegroups.com
We're using Selenium Webdriver with cucumber.
And, we need to run test cases separately for different batches/different release test cases etc.

If there's a way to pass a variable to the cuke runner class file, then we won't need to create multiple cuke runner files.

Please help.
Regards,
Amit


Paolo Ambrosio

unread,
May 1, 2014, 8:07:57 AM5/1/14
to cu...@googlegroups.com
On Thu, May 1, 2014 at 6:53 AM, Amit Sharma <amit.m...@gmail.com> wrote:

> We're using Selenium Webdriver with cucumber.
> And, we need to run test cases separately for different batches/different
> release test cases etc.

I guess you are using Cucumber-JVM, but next time please prefix the
title as by group rules.

> If there's a way to pass a variable to the cuke runner class file, then we
> won't need to create multiple cuke runner files.

This question has been answered several times on the list, so I won't
get into details. You can define system properties by adding
-Dpropertyname=value as a JVM parameter and accessing them from Java
with System.getProperty("propertyname").


Paolo

> Please help.
> Regards,
> Amit

Amit Sharma

unread,
May 6, 2014, 8:33:22 AM5/6/14
to cu...@googlegroups.com
hi Paolo,

Thanks for replying. I was trying to find out other detailed responses.

Is it possible to send me the links to other responses, i couldn't find any.

aslak hellesoy

unread,
May 6, 2014, 10:42:51 AM5/6/14
to Cucumber Users



On Tue, May 6, 2014 at 1:33 PM, Amit Sharma <amit.m...@gmail.com> wrote:
hi Paolo,


I'm not Paolo. Hope you don't mind getting answers from others than him.
 
Thanks for replying. I was trying to find out other detailed responses.

Is it possible to send me the links to other responses, i couldn't find any.



On Thursday, 1 May 2014 11:23:48 UTC+5:30, Amit Sharma wrote:
We're using Selenium Webdriver with cucumber.
And, we need to run test cases separately for different batches/different release test cases etc.

If there's a way to pass a variable to the cuke runner class file, then we won't need to create multiple cuke runner files.

Please help.
Regards,
Amit


--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages