You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For running the tests on Docker container we have to first build a image from Dockerfile and then run the image to spawn container on which the test scripts will run.
226
+
- For building image from Docker run below command, where path to Dockerfile must be provided after -f tag and name of the image must be provided after -t tag.
227
+
```JS
228
+
docker build . -f Dockerfile -t playtest
229
+
```
230
+
- Once the image is generated we can run the image to spawn container and run scrips using below command. In Below Command "playContainer" is name of the container created using "playtest" image.
231
+
```JS
232
+
docker run --name playContainer playtest
233
+
```
234
+
- If you want to run a different test or provide custom command, Go to Dockerfile and edit the last line which is CMD section. The below sample runs test cases serially on QA environment.
235
+
Once you have edited the CMD section we have to follow Step 1 to build a new image and ten run the Container from that image.
0 commit comments