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.

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay