Run Web Tours in Windows Docker Container
Tags: docker, testing, performance, loadrunner
Published: 2020-05-18 15:40:54

This blog post originally appeared on my blog [QAInsights](https://qainsights.com/web-tours-in-windows-docker-container/).

<!-- wp:paragraph -->
<p>Web Tours is one of the most famous sample application to learn performance testing using Micro Focus LoadRunner. It is available in the Micro Focus marketplace to download and run it locally. But for starters, they always face issues. Hence, I created this Windows docker container for Web Tours which will save your time. Thank me later.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Web Tours installation - Legacy mode</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You can check out my YouTube tutorial about how to install Web Tours in my channel.</p>
<!-- /wp:paragraph -->

{% youtube T0vcMInzKPY %}

<!-- wp:paragraph -->
<p>The video is going to reach 5K views soon and the feedback is great.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":7319,"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://qainsights.com/wp-content/uploads/2020/05/image-36-1024x440.png" alt="" class="wp-image-7319"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>To run Web Tours, first you need to install Strawberry Perl 5.10.1.0 package and run the <code>StartServer.bat</code> from the Web Tours zip package. By default, it would launch in 1080 port, if no issues faced during installation. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You should have administrator privilege, otherwise you may not run the Web Tours successfully.</p>
<!-- /wp:paragraph -->

<!-- wp:verse -->
<pre class="wp-block-verse"><strong>IMPORTANT NOTE </strong>This image is not available in Docker Hub as I cannot build the image with Web Tours and publish it in the hub.</pre>
<!-- /wp:verse -->

<!-- wp:heading -->
<h2>Web Tours Installation - Pro Mode</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Why you should go thru all the pain in installing Perl and Web Tours? Now you can run Web Tours in Windows Docker container. </p>
<!-- /wp:paragraph -->

<!-- wp:pullquote -->
<figure class="wp-block-pullquote"><blockquote><p>You need to have Windows 10 Pro or other compatible Windows operating system to run Docker container.</p></blockquote></figure>
<!-- /wp:pullquote -->

<!-- wp:paragraph -->
<p>Check out my GitHub repository <a rel="noreferrer noopener" href="https://github.com/QAInsights/WebTours-Demo-Windows-Docker" target="_blank">https://github.com/QAInsights/WebTours-Demo-Windows-Docker</a> to download the docker file to get started.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This docker file helps you to run Web Tours application in Windows container. Web Tours is the sample application to learn Micro Focus LoadRunner Professional.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Prerequisite</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Before you begin building this image, you must download Web Tours application from <a href="https://marketplace.microfocus.com/appdelivery/content/web-tours-sample-application">https://marketplace.microfocus.com/appdelivery/content/web-tours-sample-application</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Download only the WebTours.zip file</li><li>Docker for Windows</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>DO NOT download the Strawberry Perl installation package.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Build</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You must build this image to run Web Tours application. This image is not available in Docker Hub.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><code>docker build -t webtours-demo .</code></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>How to run Web Tours docker image in Windows?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Once the image is built, you can issue below command to run the docker container.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><code>docker run -d -p 1080:1080 webtours-demo</code></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Validate Web Tours Container</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Issue the below command to check the running container.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><code>docker ps</code></p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":7320,"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://qainsights.com/wp-content/uploads/2020/05/image-37-1024x105.png" alt="" class="wp-image-7320"/></figure>
<!-- /wp:image -->

<!-- wp:heading -->
<h2>Validate Web Tours Sample Application</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>By default, Web Tours opens 1080 port in the container. Open your browser and launch http://127.0.0.1:1080/WebTours/.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":7321,"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://qainsights.com/wp-content/uploads/2020/05/image-38.png" alt="" class="wp-image-7321"/></figure>
<!-- /wp:image -->

<!-- wp:heading -->
<h2>Stopping the container</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Issue the below command to stop the container.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><code>docker stop &lt;container-id&gt;</code></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Donate</h2>
<!-- /wp:heading -->

<!-- wp:heading -->
<h2><br><a rel="noopener noreferrer" href="https://www.buymeacoffee.com/qainsights" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/bmc-new-btn-logo.svg" alt="Buy me a tea"><span style="margin-left: 15px; font-size: 28px !important;">Buy me a tea</span></a></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>If you face any issues, please raise it in my <a href="https://github.com/QAInsights/WebTours-Demo-Windows-Docker">GitHub repo</a>. </p>
<!-- /wp:paragraph -->