[LDTP-Dev] Uniquely identify an application

Sandro MILLIEN msp at lloedy.com
Mon Feb 2 14:19:22 PST 2009


We must find a way to uniquely identify an application we want to submit
to tests, across the whole system.
I mean without using titles.

Why ?
This is what happened to me...
Getting back to work on my automated tests for anjuta, I ran a script
that I wrote, confident that it will work since it always did, but to my
astonishment the script failed.
So I entered a processus of investigation to identify the rationale of
the failure.
About twenty minutes later, I discover that it was because of a my
web-browser on my fourth desktop, that had the word "Anjuta" in it's
title bar.


I know I could write some code that close every window in the desktop
before running my test case, but I think it is much better that the test
framework itself provide us a mean to be sure that the tests we are
running  actually runs against the application we are testing. And not
it's brother, or any other one.
We must not hope, we must be sure.
It's about making the scripts robust to environment aleas.
(The tests case are meant to be runnable on distant computers...)


If this already exists, may someone give me some pointers.

Cheers....
Sandro Millien




More information about the LDTP-dev mailing list