Ansible and Ranorex

Best practices, code snippets for common functionality, examples, and guidelines.
Tedwards519
Posts: 1
Joined: Wed Aug 29, 2018 8:14 pm

Ansible and Ranorex

Post by Tedwards519 » Wed Aug 29, 2018 8:22 pm

Is anyone using Ansible to login to a Windows machine lunch Ranorex Studio and start a job?

We are currently using Ansible for a majority of our automation and we also use Ranorex for testing. I wanted to bring them both together without having a middle man like Jenkins. Does anyone have any experience with this? Google searches for Ansible and Ranorex are coming back with nothing and searching for Ansible in the Ranorex forums gives me zero results! (maybe one after this gets posted.)

dugovic.milan
Posts: 68
Joined: Wed Jun 29, 2016 1:19 pm
Location: Frankfurt, Germany
Contact:

Re: Ansible and Ranorex

Post by dugovic.milan » Tue Mar 12, 2019 9:14 am

Hi, I don't really know what exactly are you trying to achieve? Do you want to simply run Ranorex Tests automatically after Windows Log In? Can you post your detailed scenario?
Ranorex Explorer @DVAG
Support my Ranorex Ideas & Improvements
My current approach: Ranorex 9.2.0

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: Ansible and Ranorex

Post by Stub » Tue Mar 12, 2019 10:45 am

We use a bespoke MSBuild solution (which is some 11+ yo now I think) to run our Ranorex tests. This automates retrieving of our Ranorex test code from source control, and then builds it (also via MSBuild). Next it uses LogonExpert to unlock the Windows desktop. Then it invokes the Ranorex test .EXE built earlier to execute our tests. After the tests are complete LogonExpert locks the desktop again.

I know absolutely nothing about this Ansible however. You might be able to bring all the components together like we've done? Running the Ranorex tests that have been built to a handy EXE, passing the Test Suite and various other global parameters via the command-line, is very flexible, I've found.