Automating the Connect IQ Simulator for Testing

Hello,

I am trying to setup an automation framework around a Garmin watch app that we have developed. I am NOT concerned with unit tests. I am further down the line from there and focused on integration tests and UI tests. 

The question:

is there a way to control the connect IQ simulator? 

can you attach a debugger to a currently running app?

can you send actions (press a button, change gps location, etc) to the simulator once its created?

can you read the state of the app while its running?

Basically want to do this:

compile prg file

start simulator with that prg file

run automated tests on a simulator running the prg file.

The problem I have is that no window inspection (windows inspector, appium, various github inspector tools) can detect anything inside the panel window to "click" on the buttons or read the text on the screen. It is just a "blank" panel object.

Anyone done this?

Any resources you can point me to?

Thanks for reading and I appreciate any help you can give me.

Top Replies

  • I hope you make a good living out of your CIQ projects that can afford you to buy 9+ devices...

    Yeah I think we all know that anyone who tried to make a living off of ciq would starve very…

All Replies

  • This is great!  I actually put together a similar script for MacOS and then got stuck because the emulator listens for keystrokes at a layer lower than the Cocoa window manager, so there isn't a way to feed keystrokes into it.  I'll try modifying your script for Windows to see if I can make it work on that platform.

    There is an interesting tool in the ConnectIQ SDK called "shell" that looks like it provides some ways to control the simulator, but it's not documented from what I can tell.  I was trying to figure out if I could use that to simulate keypresses to the simulator.