Running a test is throwing initialization error
Closed this issue · 5 comments
Tried running a test SampleSauceTest with ConcurrentParameterized.class on Sauce lab is throwing initialization error. Could you please help me on fixing this issue
Hi, can you please attach the stack trace for the error message? I just ran the test in my environment and it seemed to work okay
Actually I tried to run SampleSauceTest tests in parallel using @RunWith(ConcurrentParameterized.class) but for some reason but for some reason its failed with initialization error. When looked at other options found that Sauce lab has another class called Parallelized and with this able to run tests in parallel across different platforms/browsers. Could you please tell me the difference between ConcurrentParameterized.class and Parallelized class. With the Parallelized one observed that tests are running across specified platforms parallely on Sauce labs.
Thanks in advance for your help
Sivakumar
From: Ross Rowe <notifications@github.commailto:notifications@github.com>
Reply-To: saucelabs/sauce-java <reply@reply.github.commailto:reply@reply.github.com>
Date: Wednesday, April 22, 2015 at 12:31 PM
To: saucelabs/sauce-java <sauce-java@noreply.github.commailto:sauce-java@noreply.github.com>
Cc: Sivakumar Nallusamy <sivakn@cobalt.commailto:sivakn@cobalt.com>
Subject: Re: [sauce-java] Running a test is throwing initialization error (#22)
Hi, can you please attach the stack trace for the error message? I just ran the test in my environment and it seemed to work okay
—
Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_saucelabs_sauce-2Djava_issues_22-23issuecomment-2D95053185&d=AwMCaQ&c=N13-TaG7c-EYAiUNohBk74oLRjUiBTwVm-KSnr4bPSc&r=3ah7Ypl6SKchsXdw2jmvie5ePycAmjQDDu4cOEYANjQ&m=qVHFQRvkhqTnv1G8EifCtCwOaHA2YROL3H3tArOZj7o&s=lRVYL8xWPKx75FKSMt-h5e05_VIFY-dTP_NRpXH2hm4&e=.
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
Is it possible to run a test on selenium grid in bamboo sequentially only once but running the same test on sauce lab parallely using any specific condition? If I use the annotation @Paralleilized to run test parallely on Sauce lab then tests are failing on Selenium grid in Bamboo with illegal argument exception. Is there any way to fix this issue?
Thanks in advance for your help
Sivakumar
From: , Sivakumar Nallusamy <sivakn@cobalt.commailto:sivakn@cobalt.com>
Date: Wednesday, April 22, 2015 at 6:55 PM
To: saucelabs/sauce-java <reply@reply.github.commailto:reply@reply.github.com>
Cc: Sivakumar Nallusamy <sivakn@cobalt.commailto:sivakn@cobalt.com>
Subject: Re: [sauce-java] Running a test is throwing initialization error (#22)
Actually I tried to run SampleSauceTest tests in parallel using @RunWith(ConcurrentParameterized.class) but for some reason but for some reason its failed with initialization error. When looked at other options found that Sauce lab has another class called Parallelized and with this able to run tests in parallel across different platforms/browsers. Could you please tell me the difference between ConcurrentParameterized.class and Parallelized class. With the Parallelized one observed that tests are running across specified platforms parallely on Sauce labs.
Thanks in advance for your help
Sivakumar
From: Ross Rowe <notifications@github.commailto:notifications@github.com>
Reply-To: saucelabs/sauce-java <reply@reply.github.commailto:reply@reply.github.com>
Date: Wednesday, April 22, 2015 at 12:31 PM
To: saucelabs/sauce-java <sauce-java@noreply.github.commailto:sauce-java@noreply.github.com>
Cc: Sivakumar Nallusamy <sivakn@cobalt.commailto:sivakn@cobalt.com>
Subject: Re: [sauce-java] Running a test is throwing initialization error (#22)
Hi, can you please attach the stack trace for the error message? I just ran the test in my environment and it seemed to work okay
—
Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_saucelabs_sauce-2Djava_issues_22-23issuecomment-2D95053185&d=AwMCaQ&c=N13-TaG7c-EYAiUNohBk74oLRjUiBTwVm-KSnr4bPSc&r=3ah7Ypl6SKchsXdw2jmvie5ePycAmjQDDu4cOEYANjQ&m=qVHFQRvkhqTnv1G8EifCtCwOaHA2YROL3H3tArOZj7o&s=lRVYL8xWPKx75FKSMt-h5e05_VIFY-dTP_NRpXH2hm4&e=.
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.
I haven't been able to replicate the initialization error using the ConcurrentParameterized class, can you attach the stack trace of the error, and also let me know what version of the sauce_junit library you're using?
With regards to running tests in sequence/parallel based on arbitrary conditions, I don't think this is possible using the @RunWith annotations, but it's probably possible if you develop some custom code to perform this.
Please reopen, if this is still an issue.