Indicating when a process is idle

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Indicating when a process is idle

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:17 pm

by torrie >> Tue, 10 Dec 2002 9:14:01 GMT

We are looking at writing some automated testing code and wondered if there was a way of find out whether another process was idle, ie all code had finished executing for another process.

We would also like to use some of the methods on the Application object but Jade throws a 14009 exception (Method called for non-running application object) when we try to execute the methods from another applicaiton. Does anyone know a way around this?

Torrie

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Indicating when a process is idle

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:17 pm

by allistar >> Tue, 10 Dec 2002 22:20:18 GMT
We are looking at writing some automated testing code and wondered if there was a way of find out whether another process was idle, ie all code had finished executing for another process.

One way is to fire an event in the other process when all code has finished executing (I am assuming that the other process is Jade code and that you have access to the source). If you have a framework that uses a transsaction/model layer then you should be able to do this generically.
We would also like to use some of the methods on the Application object but Jade throws a 14009 exception (Method called for non-running application object) when we try to execute the methods from another applicaiton. Does anyone know a way around this?

Fire an event which the other application catches that tells it to do something. You could pass it an object and the name of a methos to call as the "userInfo" for the event so the other process knows what it needs to do.

We do a similar thing here, except that we drive the GUI of the other application. We have a subschema of our main schema that we call the "driver". This driver application simultes user actions in a scripted fashion, allowing us to stress test and QA our application.
Torrie

Regards,
Allistar.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 10 guests

cron