How to run certain tests in parallel and others in sequential #2891
Unanswered
aakash3771
asked this question in
Help Needed
Replies: 2 comments
-
In my opinion I would not suggest to use such an approach to be honest. It would make more sense to have your tests not depend on each other. Maybe you can find a way to run the steps which make the changes on the settings feature right before the test which should make the assertions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
-->The test do not depend on another test. I setup my app via API calls before actual test execution begins. The problem with parallel is that if two such tests run in parallel then one test would fail as the app would be setup based on settings of the other test. Anyway I have found a solution. We will add sequential tag to the tests that can’t be run in parallel. We’ll use skiptags to ignore such tests in parallel execution and in next test run include only tests with sequential tags. From: Må ***@***.***>Date: Monday, 13 September 2021 at 9:04 PMTo: nightwatchjs/nightwatch ***@***.***>Cc: Aakash Gupta ***@***.***>, Author ***@***.***>Subject: Re: [nightwatchjs/nightwatch] How to run certain tests in parallel and others in sequential (Discussion #2891)In my opinion I would not suggest to use such an approach to be honest.It would make more sense to have your tests not depend on each other.Configure the system to be in a well defined state, such as creating and configuring objects or adding data to a test database before starting with a test suite / scenario.Maybe you can find a way to run the steps which make the changes on the settings feature right before the test which should make the assertions.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have segregated all tests in folders based on the features in the app. There are some tests that do some settings in the app before actual testing happens. Such tests can't run in parallel otherwise expected settings might not be there. The requirement is to execute such tests in sequence. What could be the solution? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions