using VNC for GUI Testing in goCD

12 views
Skip to first unread message

Martin Lourduswamy

unread,
Feb 7, 2020, 4:42:05 PM2/7/20
to go-cd
Hi,
I am new to goCD, I would like to know if anyone has used VNC to bring up GUI applications or test GUI applications from goCD

VNC is slow sometimes and I do not want to rely on VNC for my testing, I would rather let the default desktop to handle it,
Please let me know your thoughts and suggestions and your experience,

Thanks,

Regards
Martin Lourduswamy

Ketan Padegaonkar

unread,
Feb 7, 2020, 7:51:29 PM2/7/20
to go...@googlegroups.com
GoCD builds themselves use xvfb for running selenium bases tests.

We don't use vnc because nobody on the team needs to login to the server to see the tests running.

This setup has worked well for us for several years now, without a hitch.

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/2ae7c06f-7c45-49a7-85ad-02ec15613074%40googlegroups.com.

Martin Lourduswamy

unread,
Feb 7, 2020, 10:08:01 PM2/7/20
to go-cd
Hi,

Thanks, could you please tell me what tool do you use for running selenium tests on CentOS or Linux?
Also, for calling GUI apps like firefox or chrome from goCD builds, how do you do that.
I tried with goCD running as service and it says it can not open DISPLAY to run the GUI apps

Thanks,
Regards,
Martin Lourduswamy

On Friday, February 7, 2020 at 7:51:29 PM UTC-5, Ketan Padegaonkar wrote:
GoCD builds themselves use xvfb for running selenium bases tests.

We don't use vnc because nobody on the team needs to login to the server to see the tests running.

This setup has worked well for us for several years now, without a hitch.
On Sat, 8 Feb, 2020, 03:12 Martin Lourduswamy, <marti...@gmail.com> wrote:
Hi,
I am new to goCD, I would like to know if anyone has used VNC to bring up GUI applications or test GUI applications from goCD

VNC is slow sometimes and I do not want to rely on VNC for my testing, I would rather let the default desktop to handle it,
Please let me know your thoughts and suggestions and your experience,

Thanks,

Regards
Martin Lourduswamy

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go...@googlegroups.com.

Aravind SV

unread,
Feb 8, 2020, 1:41:41 AM2/8/20
to go...@googlegroups.com
Ketan mentioned Xvfb. Maybe this helps: http://elementalselenium.com/tips/38-headless

Cheers,
Aravind

On Fri, Feb 07, 2020 at 19:08:01 -0800, Martin Lourduswamy wrote:
> Hi,
>
> Thanks, could you please tell me what tool do you use for running selenium
> tests on CentOS or Linux?
> Also, for calling GUI apps like firefox or chrome from goCD builds, how do
> you do that.
> I tried with goCD running as service and it says it can not open DISPLAY to
> run the GUI apps
>
> Thanks,
> Regards,
> Martin Lourduswamy
>
> On Friday, February 7, 2020 at 7:51:29 PM UTC-5, Ketan Padegaonkar wrote:
> >
> > GoCD builds themselves use xvfb for running selenium bases tests.
> >
> > We don't use vnc because nobody on the team needs to login to the server
> > to see the tests running.
> >
> > This setup has worked well for us for several years now, without a hitch.
> >
> > On Sat, 8 Feb, 2020, 03:12 Martin Lourduswamy, <marti...@gmail.com
> > <javascript:>> wrote:
> >
> >> Hi,
> >> I am new to goCD, I would like to know if anyone has used VNC to bring up
> >> GUI applications or test GUI applications from goCD
> >> https://docs.gocd.org/current/advanced_usage/ui_testing.html
> >>
> >> VNC is slow sometimes and I do not want to rely on VNC for my testing, I
> >> would rather let the default desktop to handle it,
> >> Please let me know your thoughts and suggestions and your experience,
> >>
> >> Thanks,
> >>
> >> Regards
> >> Martin Lourduswamy
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "go-cd" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to go...@googlegroups.com <javascript:>.
> >> <https://groups.google.com/d/msgid/go-cd/2ae7c06f-7c45-49a7-85ad-02ec15613074%40googlegroups.com?utm_medium=email&utm_source=footer>
> >> .
> >>
> >
>
> --
> You received this message because you are subscribed to the Google Groups "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/b7c23639-1fc0-4722-93b3-853cbc3b04d2%40googlegroups.com.

Martin Lourduswamy

unread,
Feb 8, 2020, 9:35:42 AM2/8/20
to go-cd
Hi,
Thanks, I will pass this info to my testing team.

I also wanted to see how to bring up GUI apps as I need to copy and paste text from a GUI app like servername and details from that app to my second GUI and run it.
I can use cron to setup the export DISPLAY=:0 and start the app.

*/1 * * * * * * export DISPLAY=:0; /usr/bin/bash start_external.app.bin.bash

Since I use goCD as services on CentOS it does not allow me to start a GUI and says GTK waning that it can not open display. There is also an option for starting goCD as console to start it in foreground. I think the developers of goCd wanted to allow goCD to interact with desktop apps(I hope my assumption is correct). But, I can not start
service go-agent console 
on centOS it gves me error.

Could anyone please guide me how to start go-agent in foreground so that I can launch Desktop helper apps for CI/CD of my pipeline 

Thanks,
Regards
Martin Lourduswamy
> To unsubscribe from this group and stop receiving emails from it, send an email to go...@googlegroups.com.

Martin Lourduswamy

unread,
Feb 8, 2020, 6:47:16 PM2/8/20
to go-cd
Hi,
Followed

and now I have GUI coming up in CentOS Desktop,

Thanks,
Regards
Martin Lourduswamy
Reply all
Reply to author
Forward
0 new messages