Re: Selenium with VPN connection?

2,180 views
Skip to first unread message

Swami

unread,
Feb 16, 2009, 8:12:58 PM2/16/09
to selenium-users...@googlegroups.com
Hi,

Fine. I was giving the details to debug things. I thought not to disturb you guys with same question so was trying to give all the details so that you need not come back and forth.

Yes you got it correctly. The application takes over the window that is supposed to be Test Runner.
As you have mentioned after the command is entered and clicked Enter key, it brings up two windows. The upper browser had 4 four frmaes. The lower browser is also has the AUT.
So the answers are:
1) Yes
2)Yes

I already tried with a simple Google test case and executed it in both IE and Firefox. They both are passing as expected. I dont have a problem with that.
Is things are fine till here? If not let me know so that i can add details.

Now when executing the test case for my application (link - https://cli-qa.xxxx.net) (as *chrome for firefox )after the command is entered in the cmd prompt, two window pops up, the upper has four frames.
The lower browser has the starting link given in the command. Then the lower browser has the application link given in the test case. Suddenly after some time, lower browser gets closed and the test runner browser becomes my application.

*Extra details:*
In order to debug, I executed the same command (executing my application test case) once again and before it starts to execute, I somehow managed to "PAUSE" the execution.
So at this juncture I have both the browsers displayed.
Now I press the "STEP" command in the window, the lower browser gets closed and the command prompt gives me a error message that I have pasted in the above post.
Also I have provided the test result file too to analyse the failure.

Is things are clear now?

Apologies for the confusion and I really appreciate you for helping me on this.

Thanks,
Swami

Shah

unread,
Feb 17, 2009, 5:37:38 AM2/17/09
to selenium-users...@googlegroups.com
plus

why do you have this:

| open | [https://cli-qa.xxxx.net/jsp/portal/login.jsp] | Current window or frame is closed! |


whats the last column for?

if you are using RC you can add  Thread.sleep(5000) for debuging i.e so you can see what the error

Swami

unread,
Feb 17, 2009, 9:40:42 AM2/17/09
to selenium-users...@googlegroups.com
Hi,

@Mary Ann:

Yes your understanding is exactly right. Both in IE and FF the test runner becomes my application, the previous error messages for IE have gone now.
Fine, now executing the below command:

java -jar selenium-server.jar -htmlsuite "*chrome" "http://www.rediff.com" "C:\Selenium\Tests\login_suite.html" "C:\Selenium\cli_result.html"

*Command Prompt details:*\\ 08:23:33.081 INFO - Java: Sun Microsystems Inc. 11.2-b01\\ 08:23:33.081 INFO - OS: Windows XP 5.1 x86\\ 08:23:33.081 INFO - v1.0-beta-2 [2571], with Core v1.0-beta-2 [2330]\\ 08:23:33.175 INFO - Version Jetty/5.1.x\\ 08:23:33.175 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]\\ 08:23:33.175 INFO - Started HttpContext[/selenium-server,/selenium-server]\\ 08:23:33.175 INFO - Started HttpContext[/,/]\\ 08:23:33.190 INFO - Started SocketListener on 0.0.0.0:4444\\ 08:23:33.190 INFO - Started org.mortbay.jetty.Server@201f9\\ 08:23:33.597 INFO - Preparing Firefox profile...\\ 08:23:38.131 INFO - Launching Firefox...\\ 08:23:40.852 INFO - Checking Resource aliases\\ 08:23:54.643 INFO - Shutting down...

*Screen updates:*
Two browsers opened up with testrunner on the upper browser. Suddenly lower browser closed automatically and the upper browser became the application.

*Result file:*
The result file is blank. there was no detail in it.

*NOTE: I manually shut down the server with Ctl+C command in the cmd prompt.*

@Shah:
For the couple of questions you have asked,
1) For the columns, it was the data from the test result file, the test case does not have it. So "Why do you have this:"
I have no idea of it. Those data were the copy-paste from result file so i'm not sure what is that. May be at this point the lower browser is closed and the user is intimated in the result file.

2)Where do i add this "Thread.Sleep(5000)". I'm new to this tool so i could not figure out where to add this.

Hope I have answered all the questions.

Thanks,
Swami

Swami

unread,
Feb 18, 2009, 9:33:26 AM2/18/09
to selenium-users...@googlegroups.com
Any helpers for my questions please...........??????????????????
Due to this problem my test cases in IDE are sleeping...{emoticon:__jive_emoticon_name=sad}
I could not go beyond particular point in IDE as my application is not working in Firefox.{emoticon:__jive_emoticon_name=sad}


Any help on the above question is highly appreciated....!!!!!!

Shah

unread,
Feb 18, 2009, 3:12:43 PM2/18/09
to selenium-users...@googlegroups.com
Swami,

I would like to help you, its just that from your questions (or my understanding) I am not quite sure what you are doing or rather what is happening.

You are say you are using RC but I cant see that you are. You are:

1 creating IDE scripts and
2 running them from the command line

correct?

The "crash" or no existent log files is the main issue - right?

Okay if so - and you havent done this alread, do this for me; next to the selenium IDE run button (or if you go from the right there is the record button, rollup and the) play in Runner. Pls click that and tell me what you see.

Cheers.

Swami

unread,
Feb 18, 2009, 4:07:24 PM2/18/09
to selenium-users...@googlegroups.com
Shah,

The main intention to execute the scripts in RC, is my application is not working in Firefox after moving from the login screen. In Firefox, I'm able to login to my application and click the button to go inside the application.
I have the test case only upto that point. I recorded and edited them in IDE. When the same test case is executed in IDE they are working fine without any issue. I dont have any problem in IDE execution. The result is a PASS.

But when i use RC to execute those scritps that are recorded in IDE I have an issue. That was what i was writing about in these posts. Test runner becoming the application....etc etc...

Hope things are clear now.....

Shah

unread,
Feb 18, 2009, 4:20:17 PM2/18/09
to selenium-users...@googlegroups.com
By RC you are refering to command line java -jar ........

Have you tried the runner directly from IDE if so what do you see.

Cheers.

Swami

unread,
Feb 18, 2009, 8:45:43 PM2/18/09
to selenium-users...@googlegroups.com
Yes, I meant as RC by using the command java -jar selenium-server.jar -htmlsuite......etc
When executed in IDE directly, the test script passes... there are no issues in it{emoticon:__jive_emoticon_name=sad}

Shah

unread,
Feb 19, 2009, 5:56:35 AM2/19/09
to selenium-users...@googlegroups.com
and what do you see when you click on the runner button in IDE (leave command line i.e java -jar ..... for one moment)?

!#!!#!

Swami

unread,
Feb 19, 2009, 9:07:13 AM2/19/09
to selenium-users...@googlegroups.com
When I click on the Run Button in IDE, the test case starts to execute....
I mean the first step is:
open|https://cli-qa.xxxx.net
For this step if any Firefox is open, then the window which i started IDE starts the link and the execution goes on.....

Hope i have answered your question.

Shah

unread,
Feb 19, 2009, 9:42:33 AM2/19/09
to selenium-users...@googlegroups.com
no - please click on the third green button from the left - the one when you hover over it with your mouse says "Play with Selenium TestRunner".

After clicking that pls come back with what you see. (Dont run with comand line ONLY through IDE for now).

Thanks,

Swami

unread,
Feb 19, 2009, 12:07:40 PM2/19/09
to selenium-users...@googlegroups.com
Shah,

My bad, just now got what you were saying. Yes I clicked on the "Run with Selenium Testrunner" button.
It opens the Testrunner with four frames.
Test Suite, Current Test and Control Panel (Left to right).Below there is another frame that has a red image on it.

Now I'm not sure how to execute the script from test runner. When i click on the "Run the selected Test" or "Run All Tests" button nothing happens. I could not find any change.
However the first few steps in the test case are the below:

setSpeed|10000
store|title_next|User Account in Use
store|title_check
open|https://cli-qa.xxxx.net

Could you please let me know how do i execute the test cases? Am i doing anything wrong here?

Shah

unread,
Feb 19, 2009, 12:18:09 PM2/19/09
to selenium-users...@googlegroups.com
ok.

Try this code for example:

<tr>\\ &nbsp;&nbsp;&nbsp; <td>open</td>\\ &nbsp;&nbsp;&nbsp; <td>http://www.google.co.uk/</td>\\ &nbsp;&nbsp;&nbsp; <td></td>\\ </tr>\\ <tr>\\ &nbsp;&nbsp;&nbsp; <td>assertTitle</td>\\ &nbsp;&nbsp;&nbsp; <td>Google</td>\\ &nbsp;&nbsp;&nbsp; <td></td>\\ </tr>\\ <tr>\\ &nbsp;&nbsp;&nbsp; <td>type</td>\\ &nbsp;&nbsp;&nbsp; <td>q</td>\\ &nbsp;&nbsp;&nbsp; <td>Hello World</td>\\ </tr>\\ <tr>\\ &nbsp;&nbsp;&nbsp; <td>clickAndWait</td>\\ &nbsp;&nbsp;&nbsp; <td>btnG</td>\\ &nbsp;&nbsp;&nbsp; <td></td>\\ </tr>\\ <tr>\\ &nbsp;&nbsp;&nbsp; <td>assertTitle</td>\\ &nbsp;&nbsp;&nbsp; <td>Hello World - Google Search</td>\\ &nbsp;&nbsp;&nbsp; <td></td>\\ </tr>

Then run in the test runner (as before).

Then new browser opens. On the top left there are play buttons. Click on the second one (the one when you hover over with the mouse says "Runn selected test")

What do you see

Shah

unread,
Feb 19, 2009, 12:19:03 PM2/19/09
to selenium-users...@googlegroups.com
sorry meant top RIGHT frame

Swami

unread,
Feb 19, 2009, 1:43:48 PM2/19/09
to selenium-users...@googlegroups.com
Shah,

I did that and nothing happens after clicking on "Run the Selected Tests".

Shah

unread,
Feb 19, 2009, 1:49:02 PM2/19/09
to selenium-users...@googlegroups.com
You ran the script that I sent you and the script did not run??? I find that strange?? I have never seen that before using a simple test on google...\\ \\ umm ..... what browser are you using, i mean version of FF? I understand there were some issues with some versions off FF

Swami

unread,
Feb 19, 2009, 2:08:32 PM2/19/09
to selenium-users...@googlegroups.com
I'm using Firefox 3.0.6. {emoticon:__jive_emoticon_name=sad}
Took the one that was there in thier front page...

I have sent you a private message....!!!

Shah

unread,
Feb 19, 2009, 2:15:45 PM2/19/09
to selenium-users...@googlegroups.com
"there in thier front page..." ?

Dont know - I am using the same browser and the google test is working fine...??? Something is wrong here...

Swami

unread,
Feb 19, 2009, 2:22:45 PM2/19/09
to selenium-users...@googlegroups.com
Fine... Any idea whether it has to deal with the user rights in the system or some settings for the browser....etc

Shah

unread,
Feb 19, 2009, 4:52:10 PM2/19/09
to selenium-users...@googlegroups.com
this is a real puzzle {emoticon:__jive_emoticon_name=confused}

Worth re-adding the IDE add-on other that I dont know.

Shah

unread,
Feb 20, 2009, 10:03:43 AM2/20/09
to selenium-users...@googlegroups.com
Swawi,

Did you get this work? Otherwise I have responsed to your private note.

Swami

unread,
Feb 20, 2009, 10:48:47 AM2/20/09
to selenium-users...@googlegroups.com
No, the above idea did not fix the problem. {emoticon:__jive_emoticon_name=sad}
Hopefully I will drop the idea of automating my application with selenium.

I replied your PM yesterday itself.

Shah

unread,
Feb 20, 2009, 11:47:47 AM2/20/09
to selenium-users...@googlegroups.com
{font:style=color: #333333;}dont give up so soon. pls respond to my private message and we will put the solution up for others in group,{font}

cheers

Swami

unread,
Feb 20, 2009, 11:51:50 AM2/20/09
to selenium-users...@googlegroups.com
I'm yet to give up, but trying out other options to check out what was the problem.

I appreciate your helpfulness.

-Thanks

Shah

unread,
Feb 20, 2009, 12:07:04 PM2/20/09
to selenium-users...@googlegroups.com
no prob - pls respond to my message.

cheers

Swami

unread,
Feb 24, 2009, 9:22:22 PM2/24/09
to selenium-users...@googlegroups.com
For the issue I have notified above, i was able to resolve it to the max. [Reason for saying max is because I receive few alerts before they are executed by SRC]
Instead of the latest rc-1.0-beta2 version, I used the immediate old version 0.9.2
With that version I was able to run the tests recorded in IDE. The parameter used was "*iexplore".
When used with "*iehta" I received an Runtime, Permission Denied Error.

NOTE:
Even with the 0.9.2 version execution, I received a "Security Alert", after clicking *Yes* to it, there was another message about the secure domain. Clicking Yes to it made the execution go through fine.

*This idea of using the older version was proposed by another user named 'SHAH'. I thank him here again for helping me with it.*

SBose

unread,
Feb 25, 2009, 6:13:25 AM2/25/09
to selenium-users...@googlegroups.com
1.I am getting problem with FF3 and i am using beta-2 version of selenium rc.It says Firefox can be coonected to xxxxx url?
for me IE works fine. Can anybody please help me to run my test case on FF3 ?

2. After executing the testcase the IE is closed automatically.But if i want it to remain open still after the execution what should i do?

Reply all
Reply to author
Forward
0 new messages