This docker image helps you to run LoadRunner Developer scripts in Linux container. LoadRunner Developer leverages DevWeb protocol, a brand new offering from Micro Focus.
You can also check it out Windows Image.
Following are the prerequisites required to work in LoadRunner Developer:
- LoadRunner Developer package (latest stable version)
- Working knowledge on DevWeb protocol. Check out my Udemy course to learn about DevWeb procotol.
LoadRunner Developer is free to use for up to 50 virtual users. You need to create an account at Micro Focus Marketplace.
- Download LoadRunner Linux package from marketplace.
I suggest you to build this image before you start using it. Follow the below steps to build this image.
- Clone this repository
- Place the DevWeb tar file inside your folder
- Run the build command
docker build -t <name> .
e.g. docker build -t devweb .
This image uses Ubuntu as base image.
Once the build is successful, you can run the script from the examples
folder using the below command.
docker run devweb -mode=single ./examples/EmptyScript
Important Notes:
- No need to append DevWeb.exe in the command
- Default working directory is
/DevWeb
You can mount your host to the container using the below command.
docker run -v C:\Scripts\AdvantageOnlineShopping:/Scripts/AdvantageOnlineShopping <image-name> --mode=single /Scripts/AdvantageOnlineShopping
Using the mount volume command, after the execution is completed, you can view the results inside the script folder e.g. C:\Scripts\AdvantageOnlineShopping\results
.
DevWeb package file is not publicly downloadable. You need to login and download it. This repo doesn't contain the DevWeb package, as it is against Micro Focus terms to host the DevWeb contents in the public repo. It is must for you to download the DevWeb tar file and place it in your local repo.
If you are getting r' command not found docker
while executing the Docker image, open run.sh
in Notepad++, go to Edit
> EOL Conversion
> Unix(LF)
then save the file and build the image again.
Visit my blog to learn more about LoadRunner Developer, DevWeb and more.