DEV Community

hemant5144
hemant5144

Posted on

Running white library desktop automation in windows based server

In jenkins CI-CD jobs, the linux machines are available to trigger our automation code. So if our automation code consists of selenium library and other libraries, the job will perform without errors and automation report will be generated.
But one issue arises here, when we do the automation for desktop based application using white library. The white library interacts with desktop elements and not capable of running those automation code in the linux agents which are present in the jenkins. There is a challenge to add windows agent in the jenkins and complex
solution - get a dedicated windows based virtual machine which will do the job for you, executing a desktop based automation without fail. The linux agent will not be required for the same and it wont work anyhow.
setup up the application in the Virtual machine in prior for which you have written a automation code. Add the config files in the jenkins file and give the correct project and absolute file path of the project.
Once you trigger the freestyle job pipeline, it will start the execution in the dedicated machine.
Set the env variables in the jenkins files like username, password and the required fields.

Redis image

Short-term memory for faster
AI agents

AI agents struggle with latency and context switching. Redis fixes it with a fast, in-memory layer for short-term context—plus native support for vectors and semi-structured data to keep real-time workflows on track.

Start building

Top comments (0)

👋 Kindness is contagious

If this **helped, please leave a ❤️ or a friendly comment!

Okay