Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full and true automation with Watir and AutoIT [closed]

Tags:

watir

autoit

We use Watir with AutoIT for testing our web apps with IE on Windows. The AutoIT is used where Watir falls short in handling native Windows dialogs (like Windows File dialog for upload).

Because of AutoIT, we are not able to run our tests using task scheduler as AutoIT operations from Watir code need an Interactive Desktop session.

We have tried a few tricks (RDP from a RDP, etc.) but w/ no success and are not able to do true automation.

Any ideas? Open to replacing AutoIT if it can help us achieve true end2end testing automation.

like image 758
Raj Avatar asked Jan 28 '26 20:01

Raj


2 Answers

We had similar issues when we started running our tests from our TeamCity agents that were running as a service. This is because you are trying to run an interactive process from a service which is not interactive. We switched to have our TeamCity agents run as normal processes and the problem went away.

You may want to look into a build management server to handle running this instead of just using Task Scheduler, but either way you want to avoid running the test process as a service.

like image 101
JEH Avatar answered Jan 31 '26 11:01

JEH


You need to use a scheduler that is running with user permissions. I've previously used CruiseControl.Net to do this.

If your process doesn't have user permissions, it won't have access to desktop windows, which is what you need whether you are using Watir, AutoIT or some other tool. This is a permissions issue, not a tool issue.

like image 33
Bret Pettichord Avatar answered Jan 31 '26 13:01

Bret Pettichord



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!