From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 24,100 courses taught by industry experts.
Running your test with Selenium
From the course: DevOps Foundations: Your First Project
Running your test with Selenium
Right on! Let's use our "docker compose run" command from earlier to see what's changed. Remember, if you get this error, that means that you need to rebuild your container image before running our unit test. So to fix that, all we need to do is just add "--build" before or after the "--rm". And boom! Our tests are passing again. Here's a sweet trick. The Selenium service we created exposes something called a VNC server. You can think of VNC as a way of being able to drive or use a computer remotely, very similar to Remote Desktop, if you've used that before. If you have VNC installed on your system, you can see Selenium drive the browser while the test is running. Let me show you how. Now, since I'm on a Mac, I can use the screen sharing application which supports VNC. If you're on Windows, there are two VNC clients that I recommend in particular. Let's take a look at them. The first client that I'd recommend is called RealVNC, and you can get to it by typing "realvnc.com" in the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Test often, ship often3m 56s
-
(Locked)
Setting up your test7m 35s
-
(Locked)
Viewing our test harness in Docker Compose5m 47s
-
(Locked)
Updating the Dockerfile4m 36s
-
(Locked)
Running the test1m 15s
-
Finding criteria for a unit test3m 5s
-
(Locked)
Writing the unit test8m 38s
-
(Locked)
Setting up Selenium5m 2s
-
(Locked)
Running your test with Selenium4m 7s
-
(Locked)
-
-
-