Perform testing (protactor / selenium) with jenkins with 1024x768 resolution

35 views
Skip to first unread message

Erick Macedo

unread,
Jun 18, 2015, 4:21:20 PM6/18/15
to jenkins...@googlegroups.com
Hi, 

I'm working on an integration project continues using jenkins
I have installed Jenkins and cofigurado properly on a Windowns machine and run a command "grunt test" that performs a test suite with protactor and selenium. 

The test run, but jenkins open a session with the OS and I can not see the execution, as I would see it? 

The biggest problem is the jenkins opens the browser at a lower resolution to 800x600 to run the test where just giving error mostly already tried using QRes.exe 

Example: "QRes.exe / x: 1024 / y: 768," more is generated the message: "Error: The graphics mode is not supported." 

I also tried using VNC with Xvnc plugin in jenkins and configured this way. 

command line = "C: \ Program Files \ RealVNC \ VNC Server \ vncserver: $ DISPLAY_NUMBER -geometry 1024x768" 

The setup worked for in the build log I can see the plugin running: 

1
2
3
4
5
6
7
8
9
10
11
Initiated by the user anonymous
Building on the workspace C: \ Program Files (x86) \ Jenkins \ jobs \ Test screen \ workspace
System is not Unix, Xvfb will not be started
Starting Xvnc
[Workspace] $ C:\Program Files\RealVNC\VNC Server\ vncserver: 13 -geometry 1024x768
............
? [4mRunning "protractor: run" (protractor) task [24m?
Using ChromeDriver directly ...
[Launcher] 1 Running instances of WebDriver ...
............
Terminating Xvnc.

But the test still end up failing because the resolution is still less than 800X600, 

I do not know what to do to set up a resolution in jenkins, then ask for help come to you. 

Thank

Erick Macedo

unread,
Jun 20, 2015, 12:29:39 PM6/20/15
to jenkins...@googlegroups.com
still can not make this work

Erick Macedo

unread,
Jun 24, 2015, 8:02:35 PM6/24/15
to jenkins...@googlegroups.com
=/


Em quinta-feira, 18 de junho de 2015 17:21:20 UTC-3, Erick Macedo escreveu:
Reply all
Reply to author
Forward
0 new messages