Hi All Dev/user,

Can any one provide the useful input for the problem mentioned in the trail
of mail? Please advise.
Hope it's okay as two days passed hence giving gentle reminder as if this
problem gets solved then it would be useful for Jbehave users to do the
execution on "Local grid" set up and not relying on souce labs any more.
I've already provided sample Jbehave-selenium webdriver project to
reproduce the problem and it does contain very basis framework for using
selenium.This might be useful for the beginners to start with.

Please let me know for any queries and concerns.

Thanks




On Mon, May 5, 2014 at 10:07 PM, Kaustubh Joshi <[email protected]>wrote:

> yes, sure Mauro..can you please share the sample project with dev's  which
> I've sent in the first mail as for dev and user@jbehave mail list, I'd
> got bouncer mail because size was more than expected...?Please advise.
> Please let me know if you've any concern..
>
> Thanks and Regards,
> K
>
>
> On Mon, May 5, 2014 at 8:10 PM, Mauro Talevi 
> <[email protected]>wrote:
>
>> Please don't address emails to individuals and only use the mailing lists.
>>
>> On 5 May 2014, at 11:33, Kaustubh Joshi <[email protected]> wrote:
>>
>> Hi Dev/Jbehave users,
>>
>> Sorry to bother again!
>>
>> I wanted to incorporate Grid feature in selenium based Jbehave project
>> but currently facing
>> below mentioned problem.Attached is the sample project for further
>> reference.
>>
>> 1)Created own custom driver provider to open browser on local machine
>> 2) Now,I wanted to expand the capability via grid and don't want to use
>> SAUCE as wanted to run
>> on local grid structure.I've set up simple grid structure like 5 chrome,5
>> FF,1 IE instance.
>> 3) I've done changes in code as mentioned in sample Jbehave git tutorial
>> but the problem
>> is when I'm running via command prompt, instead of opening remote browser
>> , code is opening
>> local chrome browser instance.
>> The code I put in storyDriver.java file is :-
>>  if (System.getProperty("SAUCE_USERNAME") != null) {
>>         driverProvider = new SauceWebDriverProvider();
>>
>>
>>
>>     } else if (System.getProperty("REMOTE") != null) {
>>         driverProvider = new RemoteWebDriverProvider(); // replace with
>> RemoteWebDriverProvider
>>
>>
>>     } else {
>>         driverProvider = new GoogleWebDriverProvided();
>>
>>
>>     }
>>
>> The maven commands used are:
>> For invoking browser on local : mvn test -Dtest.browser=chrome
>>
>> For invoking remote : mvn test -Dtest.browser=chrome
>> -DREMOTE_WEBDRIVER_URL=http://remote machine IP:4444/wd/hub.
>>
>> I've seen code in RemoteWebDriverProvider where it has mentioned about
>> propertly like REMOTE_WEBDRIVER_URL i meant
>>
>>  public URL createRemoteURL() throws MalformedURLException {
>>         String url = System.getProperty("REMOTE_WEBDRIVER_URL");
>>         if (url == null) {
>>             throw new UnsupportedOperationException("REMOTE_WEBDRIVER_URL
>> property not specified");
>>         }
>>         return new URL(url);
>>     }
>>
>>
>> can any Dev/Mauro/Hans help in the code fix so that I can able to run
>> stories in LOCAL GRID set up as well? Please advise.
>> I've already attached the sample project.
>> Please let me know if anybody got any questions.
>>
>> Regards,
>> K
>>
>> <Google-Core.rar>
>>
>>
>

Reply via email to