Jump to content

Analog vs object test automation


Recommended Posts

Hello there!

I have started to automate an app (mostly windows/desktop) and am wondering what is the best way to build test scripts avoiding analog code. That is, avoiding mouse movements, coordinates, etc. I really would want to go for the object recognition way of automating!

Here is a snippet of code I recorded with the Au3record program, which I like to avoid as much as possible.

Thanks in advance for your time.

CarlF

---

_WinWaitActivate("Citrix Receiver - Internet Explorer","Address Combo Contro")

;Maximize
WinSetState("Citrix Receiver - Internet Explorer","",@SW_MAXIMIZE)
;_WinWaitActivate("ABS-Core TEST <on DTMLA93> - \\Remote","")
;MouseClick("left",744,14,1)

MouseClick("left",542,89,1)
MouseClick("left",388,282,1)
_WinWaitActivate("Login - \\Remote","")
MouseClick("left",34,115,1)
MouseClick("left",413,467,1)
_WinWaitActivate("ABS-Core TEST <on DTMLA93> - \\Remote","")
MouseClick("left",52,123,1)
 

Link to comment
Share on other sites

I would start here for automating Citrix with AutoIT and branch out as you see fit

Unfortunately, for you, the way Citrix offers the session to users (a big updating image) you can only do keyboard/mouse/pixelsearch stuff, no object clicks as I understand from these threads

 

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

Citrix is mainly bitmap finding see for example findbmp thread in examples with some other image finding solution. But even if bmp is found you have to move mouse and click. Maybe if yo understand the vnc citrix protocol you can do smarter things but so far never seen a solution for that.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...