GUI with jenkins not opening on the slave machine

2,192 views
Skip to first unread message

Rohan Majumdar

unread,
Sep 21, 2015, 2:58:20 AM9/21/15
to Jenkins Users
I have a jenkins slave to run the robotframework test cases. I am able to get the console prints on the master but no browser ever opens up or anything on the slave.
Ofcourse the test case works pretty fine.
But I am just curious.
How to have the automated test cases play on the slave machine.
There was post which says about running jenkins from the command line.
But my confusion regarding that is -> Jenkins is configured on the master then how can we affect
the slave by running jenkins on the console on the master please elaborate.
There is no jenkins configuration other than the Java service on the slave machine. 

Victor Martinez

unread,
Sep 21, 2015, 3:06:06 AM9/21/15
to Jenkins Users
Hi,

 Are you using Windows slaves? If so, have you configured your windows in order to support interactive sessions? IMO, I do prefer to use JNLP connections rather than Windows service connections since it does allow interactive sessions by default. Can you try to run your slave as jnlp connection?

Cheers

Rohan Majumdar

unread,
Sep 21, 2015, 6:38:16 AM9/21/15
to Jenkins Users
I have installed the java service on the slave, is that not JNLP.
Can you please elaborate what do you mean by JNLP

Rohan Majumdar

unread,
Sep 21, 2015, 6:41:04 AM9/21/15
to Jenkins Users
And yeah I am using windows Vista as a slave.
Windows 7 is the master

Victor Martinez

unread,
Sep 21, 2015, 8:39:37 AM9/21/15
to Jenkins Users

Rohan Majumdar

unread,
Sep 22, 2015, 1:18:53 AM9/22/15
to Jenkins Users
Yeah, I have followed the same tutorial while making the slave.
Once again testing works fine but the GUI automation is not visible.
I think it happens in the backfround.

Victor Martinez

unread,
Sep 22, 2015, 2:25:05 AM9/22/15
to Jenkins Users
Let me ask you if you are launching your slave connection via windows services (point 6) or via JNLP connections (point 5)


JNLP shouldn't run in the background AFAIK. Have you tried to run those commands manually in the same windows box? Different behaviour?

Cheers

Rohan Majumdar

unread,
Sep 22, 2015, 7:55:44 AM9/22/15
to jenkins...@googlegroups.com
Okay what I observed was rather weird, when the agent is not running as a service the automation is visible,
I discovered this by accident.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/TCf_KhIgHVQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d2440389-f83f-4808-9be3-db8c3f8de411%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Rohan Majumdar

unread,
Sep 22, 2015, 7:57:32 AM9/22/15
to Jenkins Users
I have observed something weird, that the automation is visible when the agent is not running as a windows service.
The automation visibility worked that way.
Discovered this by accident.

Victor Martinez

unread,
Sep 22, 2015, 9:30:12 AM9/22/15
to Jenkins Users
That's actually the expected behaviour since Windows services uses Display 0 

Just seen there was already some answers about this feature in the stackoverflow

Rohan Majumdar

unread,
Sep 24, 2015, 4:21:23 AM9/24/15
to jenkins...@googlegroups.com
So, i guess there is no way to run the service as is and be able to see the automation.

Anyways my problem is solved.
I am using the JNLP agent manually.
Not as a service.

Regards and thanks
Abbas

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/TCf_KhIgHVQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Victor Martinez

unread,
Sep 24, 2015, 4:33:50 AM9/24/15
to Jenkins Users
AFAIK, you can as long as you enable the interactive services: http://stackoverflow.com/a/19947566 might help 

Cheers

Rohan Majumdar

unread,
Sep 29, 2015, 12:31:13 AM9/29/15
to jenkins...@googlegroups.com
Excellent point  , thanks for the answer...
Open source is even faster and more accurate than proprietary.

Cheers

Reply all
Reply to author
Forward
0 new messages