Java GUI tests fail on Jenkins but not on my local machine

2019-07-09 Thread Sakshi Arora
Hi All,

I have some Java Swing Gui tests in my applications. Whenever, I run them
locally, they run without any failures/errors. But when I run them on
Jenkins, they fail randomly.

All of the failures are GUI based- for example pop-up menu never appeared.

Is there any way I can run them successfully on the headless Jenkins
machine?


Thanks & Regards,
Sakshi

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALD16Fyndvp_SHVq7mJy4WYTCq6PJZayNmkkj2uzW8MJCEs5dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Xvfb or Xvnc for GUI tests in jenkins

2019-07-01 Thread Sakshi Arora
Hi All,

Please let me know if you have any suggestions on this.

Thanks & Regards,
Sakshi Arora


On Fri, Jun 28, 2019 at 5:18 PM Sakshi Arora  wrote:

> Hi everyone,
>
> I see two plugins in jenkins to run GUI tests- xvfb and xvnc. I have
> multiple GUI tests running in parallel. Which one is the best to use?
>
> For xvfb, i need to mention a display offset. I am not sure how things
> work with xvnc. And what does XAuthority signify?
>
>  wrap([$class: 'Xvfb',screen: '1920x1200x24', displayNameOffset: 100]) {
> sh "mvn -U clean install"
> }
>
> I am looking for a way where I need not specify the display and it auto
> increments a display by 1 if a display is already taken by some other
> jenkins job.
>
> Please share how to work it out in case of a declarative pipeline.
> Thanks & Regards,
> Sakshi Arora
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALD16FyQfUNGypKC3jcrMjuxmHwFC9DZDS5dcdnP%3DNOjiy_b8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Xvfb or Xvnc for GUI tests in jenkins

2019-06-28 Thread Sakshi Arora
Hi everyone,

I see two plugins in jenkins to run GUI tests- xvfb and xvnc. I have
multiple GUI tests running in parallel. Which one is the best to use?

For xvfb, i need to mention a display offset. I am not sure how things work
with xvnc. And what does XAuthority signify?

 wrap([$class: 'Xvfb',screen: '1920x1200x24', displayNameOffset: 100]) {
sh "mvn -U clean install"
}

I am looking for a way where I need not specify the display and it auto
increments a display by 1 if a display is already taken by some other
jenkins job.

Please share how to work it out in case of a declarative pipeline.
Thanks & Regards,
Sakshi Arora

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALD16Fw34X%3Di4meL8vEP-3UTe7pVTSPD%2BkzjyV6EjUo1X6oYvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to setup xvfb on slave and use in a pipeline for gui tests

2019-05-31 Thread Sakshi Arora
Hi All,

I am on a master-slave setup and I have created a declarative pipeline job
for that.

I want to add functionality for xvfb to run before the build starts.

Please tell me how can I configure the following :

1. Where can I specify the path of xvfb installation? ( Slave's path)
2. enable xvfb to run during a stage

[image: image.png]

I think I can use the above syntax someway, how to tell the path of the
Xvfb installation

Thanks & Regards,
Sakshi Arora

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALD16FwgT%2BadBPG2GB0SKJdeLbt%2B83hpRLBpKkUPE22uXEpTqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Need help with Multi module maven project

2019-05-27 Thread Sakshi Arora
Hi All,

I have create a multi module maven project using git submodules. How do I
configure that in Jenkins so that whenever commit happens in any of the
modules,  a trigger of the Jenkins job happens which builds and tests the
parent module.

Tried creating a scripted pipeline, and triggering is happening whenever
there is a commit in the parent module.

Expected :
Triggering should happen when there is a commit in any of the submodules as
well.

Please help. Badly stuck.

Thanks & Regards,
Sakshi

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALD16FxbEA_Ru_so1GSSP6PyRAzeNLoBZsYzEB9zNHyjvgFspg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Multi-module Maven project git polling for submodules

2019-05-23 Thread sakshi arora
Hi All,

I have a multi- module project where submodules are remote git repositories.

I have created a jenkins pipeline script where I use the checkout from Gitscm 
and have enable parameters like recursively clone submodules and track 
submodules.

Whenever I run the build and test the parent project, all the submodules get 
cloned and are built and tested.

I need a way to enable trigger for the submodules so that whenever a commit 
happens in any of the submodules, the pipeline gets triggered. 

It does get triggered whenever there is a commit in the parent project but 
doesn’t track the submodules.

Please help me know how can I achieve that.

Thanks
Sakshi

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/DF2A9DF6-9841-4FB1-9AFC-31F2CD695C1E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.