0

I have two commands in package.json >

"Leeds_TestSuiteChrome": "npx cypress run --spec cypress/e2e/LE_Site_TestSuite --headed --browser chrome --record --key keynumber",

"WS_TestSuiteEdge": "npx cypress run --spec cypress/e2e/WS_Site_TestSuite --headed --browser edge --record --key keynumber"

first command will execute 'LE_site_TestSuite' in chrome and second command 'WS_TestSuiteEdge' will execute second suite in Edge browser. Below is the dockerfile using which I am executing project in Teamcity

FROM cypress/browsers:node16.16.0-chrome106-ff99-edge RUN mkdir /app WORKDIR /app COPY . /app RUN npm install RUN $(npm bin)/cypress verify RUN ["npm","run","Leeds_TestSuiteChrome"]

using this dockerfile I can execute only one command. Can anyone please tell me how to execute both commands simultaneously and that too on single agent in teamcity? Thanks

I tried with below code >

FROM cypress/browsers:node16.16.0-chrome106-ff99-edge RUN mkdir /app WORKDIR /app COPY . /app RUN npm install RUN $(npm bin)/cypress verify RUN sh -c 'npm run Leeds_TestSuiteChrome & npm run WS_TestSuiteEdge && wait'

it is failing login at second test case in both suite

0 Answers0