Discussion:
[selenium-users] How to reduce total exection time for 1000 test cases
Tushar Gulve
2018-12-03 05:29:19 UTC
Permalink
Currently, we have more than 1000 test cases, so it's taking more than15
hours. So we want to reduce this time. We can't use parallel test execution
because the next test case may depend on first. So can you please tell me
what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ravichandran k
2018-12-03 05:50:53 UTC
Permalink
run ur test script on multiple os and multiple sys
choose grid
Post by Tushar Gulve
Currently, we have more than 1000 test cases, so it's taking more than15
hours. So we want to reduce this time. We can't use parallel test execution
because the next test case may depend on first. So can you please tell me
what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ankit Gupta
2018-12-03 07:53:08 UTC
Permalink
You can divide your test cases into 1000/10 bunch and run those on using
multithreading or TestNg.
Using this, your test cases will run parallelly on 10 browsers at the same
time.
Then your time decrease by 15hr/10 = 1.5 hr
Post by Ravichandran k
run ur test script on multiple os and multiple sys
choose grid
Post by Tushar Gulve
Currently, we have more than 1000 test cases, so it's taking more than15
hours. So we want to reduce this time. We can't use parallel test execution
because the next test case may depend on first. So can you please tell me
what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKrer0Cq7iC%3DkQLqVDaCym-VHsAw%3DvUyPyuyzgokXi5jXZxxZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Parameshwar v
2018-12-03 08:22:33 UTC
Permalink
Create multiple suite and keep dependent test cases in their respective
suite and apply parallel run.
Post by Ankit Gupta
You can divide your test cases into 1000/10 bunch and run those on using
multithreading or TestNg.
Using this, your test cases will run parallelly on 10 browsers at the same
time.
Then your time decrease by 15hr/10 = 1.5 hr
Post by Ravichandran k
run ur test script on multiple os and multiple sys
choose grid
Post by Tushar Gulve
Currently, we have more than 1000 test cases, so it's taking more
than15 hours. So we want to reduce this time. We can't use parallel test
execution because the next test case may depend on first. So can you please
tell me what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAKrer0Cq7iC%3DkQLqVDaCym-VHsAw%3DvUyPyuyzgokXi5jXZxxZQ%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAKrer0Cq7iC%3DkQLqVDaCym-VHsAw%3DvUyPyuyzgokXi5jXZxxZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CABpcE%2BUj1hV3y7GOqavCG6Jyx0%3Db2nnPoStQvvYhW3quuXJuPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Joe Ward
2018-12-03 10:09:59 UTC
Permalink
Run fewer tests. Remove interdependence. Run different instances of the
application under test in docker/get more environments to run tests against.

Unfortunately in this situation "prevention" is better than "cure" I'm
afraid.
Post by Parameshwar v
Create multiple suite and keep dependent test cases in their respective
suite and apply parallel run.
Post by Ankit Gupta
You can divide your test cases into 1000/10 bunch and run those on using
multithreading or TestNg.
Using this, your test cases will run parallelly on 10 browsers at the
same time.
Then your time decrease by 15hr/10 = 1.5 hr
Post by Ravichandran k
run ur test script on multiple os and multiple sys
choose grid
Post by Tushar Gulve
Currently, we have more than 1000 test cases, so it's taking more
than15 hours. So we want to reduce this time. We can't use parallel test
execution because the next test case may depend on first. So can you please
tell me what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/988db8f4-2687-406c-be3b-c16be501451c%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CACMjWFTZ-bYxiUzdoY%2BP_oA6UZZyPSdXk1qbNDZkBbqESjqcZg%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAKrer0Cq7iC%3DkQLqVDaCym-VHsAw%3DvUyPyuyzgokXi5jXZxxZQ%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CAKrer0Cq7iC%3DkQLqVDaCym-VHsAw%3DvUyPyuyzgokXi5jXZxxZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CABpcE%2BUj1hV3y7GOqavCG6Jyx0%3Db2nnPoStQvvYhW3quuXJuPA%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CABpcE%2BUj1hV3y7GOqavCG6Jyx0%3Db2nnPoStQvvYhW3quuXJuPA%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJPyTs1ySQqrd_vBfAiiCst7Mjx%2BnOxRiCqL%2BQFsVUp2HfAb4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
connect2tech
2018-12-03 17:51:39 UTC
Permalink
Need more information to suggest solution.

1. What framework are you using (TestNG, JUnit etc.)
2. When you say test cases are dependent, how is the dependency defined.
3. Have you defined the priority of test cases / is the order execution of
test cases defined.

Regards,
~NC
https://goo.gl/DEYjrg
https://bit.ly/2MzMS62
Post by Tushar Gulve
Currently, we have more than 1000 test cases, so it's taking more than15
hours. So we want to reduce this time. We can't use parallel test execution
because the next test case may depend on first. So can you please tell me
what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a6c6a4ad-2668-4ef9-81ff-3fa81a18f98a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Muhammad Ramzan
2018-12-03 18:45:14 UTC
Permalink
If you are using testnb then you have the power to control the parallel
execution.

U can execute class level or method level depending on ur test cases. Also
it have the feature 'dependson' if test cases depending on each other u
mention them
Post by connect2tech
Need more information to suggest solution.
1. What framework are you using (TestNG, JUnit etc.)
2. When you say test cases are dependent, how is the dependency defined.
3. Have you defined the priority of test cases / is the order execution of
test cases defined.
Regards,
~NC
https://goo.gl/DEYjrg
https://bit.ly/2MzMS62
Post by Tushar Gulve
Currently, we have more than 1000 test cases, so it's taking more than15
hours. So we want to reduce this time. We can't use parallel test execution
because the next test case may depend on first. So can you please tell me
what are the possible ways to execute all test cases in less time?
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/a6c6a4ad-2668-4ef9-81ff-3fa81a18f98a%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/a6c6a4ad-2668-4ef9-81ff-3fa81a18f98a%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAB%3D%2ByV8yYTd-LUj3zEz%2B0XtqQkNfmnr4XH54Y6YeV%3DZt6AXErw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...