Search code examples
c#automationhp-uftleanft

Grid solution using LeanFT (UFT pro) for windows app


My team and I are automating a windows based app using LeanFT C# as our framework. Currently, we have several tests that we can run locally however do not have a grid like solution in place. I know that with selenium, we can make use of the selenium grid - however since we are not automating a browser based app, this is out of the question.

What we need is a grid solution that would work for a windows app. My idea is to have multiple VMs store the app, and then have a grid that would poll each VM to see if it was free to run a test on, and then pass a test to it. This is pretty much how the selenium grid works for browsers.

So my question is, does leanFT have any support for something like this, or are we strictly locked in to running tests on a single local or remote machine. Also, is there a way to check for a test instance running? Maybe if atleast that is possible we can come up with an in house solution. Thanks!


Solution

  • The answer is actually simple, even though it does not solve the issue of grid support for windows app automation using LeanFT. For this we can use Jenkins.

    What we do is we fake a parallel run system by setting parent and child jobs in Jenkins. The parent job will serve as the base job, holding the parameters and passing them to the child jobs. The child jobs will target a specific set of tests and have a designated VM to run the tests on. In Jenkins, specifying a job as a multiphase job will run these in parallel.

    By doing this, we are able to run a portion of tests on one VM, another portion of a different VM, etc, etc. This is not truly parallel, as we have to fake it in a sense, but it will accomplish the task.