[jbehave-user] Re: Selenium Webdriver+Jbehave+Grid

2014-05-09 Thread Kaustubh Joshi
Hi All Dev,

Can any dev provide the useful input for the problem mentioned in the trail
of mail? Please advise.
Hope it's okay as two days passed after sending gentle reminder mail and 4
days after after posting the original problem...

Please let me know for any queries and concerns.

Thanks


On Wed, May 7, 2014 at 3:25 PM, Kaustubh Joshi wrote:

> 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 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 
>> wrote:
>>
>>> Please don't address emails to individuals and only use the mailing
>>> lists.
>>>
>>> On 5 May 2014, at 11:33, Kaustubh Joshi  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:/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
>>>
>>> 
>>>
>>>
>>
>


[jbehave-user] Re: Selenium Webdriver+Jbehave+Grid

2014-05-07 Thread Kaustubh Joshi
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 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 
> wrote:
>
>> Please don't address emails to individuals and only use the mailing lists.
>>
>> On 5 May 2014, at 11:33, Kaustubh Joshi  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:/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
>>
>> 
>>
>>
>


[jbehave-user] Re: Selenium Webdriver+Jbehave+Grid

2014-05-05 Thread Kaustubh Joshi
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 wrote:

> Please don't address emails to individuals and only use the mailing lists.
>
> On 5 May 2014, at 11:33, Kaustubh Joshi  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:/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
>
> 
>
>


[jbehave-user] Re: Selenium Webdriver+Jbehave+Grid

2014-05-05 Thread Kaustubh Joshi
FYI...


On Mon, May 5, 2014 at 3:03 PM, Kaustubh Joshi 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:/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
>


[jbehave-user] Re: How to run Git sample Jbehave projects in Multiple browsers

2014-03-30 Thread Kaustubh Joshi
Hi All,

After doing some more analysis, I've found a solution to run on the chrome
browser mentioned below.

In the command prompt put

mvn test -Dtest.browser=chrome -DWebdriver.chrome.driver=path of chrome
driver exe present

and it's working.

If anybody else got another way,can dev share? pls advise

I've another question for IE now like what is substitution we need to make
in the command like parameter for Webdriver.chrome.driver so that it can be
run in IE browser as well???

It's been two days since I've posted my original question hence asking
again. Hope it's ok 

Thanks and Regards,
K


On Fri, Mar 28, 2014 at 8:30 PM, Kaustubh Joshi wrote:

> Hi All,
>
> I want to use Jbehave running selenium scripts in multiple browsers.
> Normally in the selenium we can use below snippet of code (just an example)
> to run in chrome or ie
>
> // Code Snippet
>
> System.setProperty("webdriver.ie.driver",
> "C:\\SeleniumD\\Selenium\\IEDriverServer.exe");
>   WebDriver browser = new InternetExplorerDriver(capabilities);
>
> OR
>
> /System.setProperty("webdriver.chrome.driver",
> "C:\\KaustubhSelenium\\chromedriver.exe");
>   //WebDriver browser = new ChromeDriver();
>
> How to use it in Jbehave? Pls advise. I am using seleniumConfiguration in
> Project while using Jbehave.
>
> Awaiting the reply.
>
> Cheers,
> K
>
>


[jbehave-user] How to run Git sample Jbehave projects in Multiple browsers

2014-03-28 Thread Kaustubh Joshi
Hi All,

I want to use Jbehave running selenium scripts in multiple browsers.
Normally in the selenium we can use below snippet of code (just an example)
to run in chrome or ie

// Code Snippet

System.setProperty("webdriver.ie.driver",
"C:\\SeleniumD\\Selenium\\IEDriverServer.exe");
  WebDriver browser = new InternetExplorerDriver(capabilities);

OR

/System.setProperty("webdriver.chrome.driver",
"C:\\KaustubhSelenium\\chromedriver.exe");
  //WebDriver browser = new ChromeDriver();

How to use it in Jbehave? Pls advise. I am using seleniumConfiguration in
Project while using Jbehave.

Awaiting the reply.

Cheers,
K


[jbehave-user] Re: Jbehave reporting question

2013-04-15 Thread Kaustubh Joshi
I am jbehave user, and just registered on the codehaus portal.So i don't
know which mail list is correct hence added all list..sorry for that

I just want to know,how calls are made for html report file which user see
as report of story execution?
I want to update html-output.ftl file such a way that when final report
gets generated in
..\target\jbehave\view\
reports.html file, i don't want columns like Given-story Scenarios, Steps
in html output file as I want to delete those permanently ..how i can do
that?
When i see the html-output.ftl file it has very complex code which does not
get how the columns are mapped and how to delete the what code...
 ...do I need to delete the code in jbehave-core.css file
as well? Pls suggest
Also if i made changes in code , how i can make them persistent/permanent
so that every time i compile, i don't see old code...

Awaiting for the help from jbehave devs.

Cheers,
K


On Mon, Apr 15, 2013 at 9:26 PM, Kaustubh Joshi wrote:

> I am jbehave user, and just registered on the codehaus portal.So i don't
> know which mail list is correct hence added all list..sorry for that
>
> I just want to know,how calls are made for html report file which user see
> as report of story execution?
> I want to update html-output.ftl file such a way that when final report
> gets generated in
> ..\target\jbehave\view\reports.html file, i don't want columns like
> Given-story Scenarios, Steps in html output file as I want to delete those
> permanently ..how i can do that?
> When i see the html-output.ftl file it has very complex code which does
> not get how the columns are mapped and how to delete the what code...
>  ...do I need to delete the code in jbehave-core.css file
> as well? Pls suggest
> Also if i made changes in code , how i can make them persistent/permanent
> so that every time i compile, i don't see old code...
>
> Awaiting for the help from jbehave devs.
>
> Cheers,
> K
>