Ask a Question

Running a Project vs. Running a Script

SOLVED
katreenmei_nare
Occasional Contributor

Running a Project vs. Running a Script

Hello,

 

I just have a question regarding a discrepancy when Running a Project vs. Running a Script.

Script1 contains a code like application.window1.close.clickbutton. This will simulate a click on the close button on window1. Note that window1 is being called by main menu screen (could be found behind the active window window1).

 

Running a Project

When I run the entire project, it will call Script1 and execute it right? But when it reaches the code application.window1.close.clickbutton, it will close window1 AND ALSO the main menu screen (entire application).

 

Running a Script

When I individually run the Script1, and it reaches the code application.window1.close.clickbutton, it will close window1 BUT NOT the main menu screen.

 

The expected output is the one when running a script.

Do you have any idea why? Thanks.

 

P.S. I have attached a file explaining the scenario in detail.

1 ACCEPTED SOLUTION

Accepted Solutions
NisHera
Valued Contributor

Re: Running a Project vs. Running a Script

If you have set up events in other tests to be fired end of test, can be triggered after time out set up for 1 min.

So try with timout =0 ie indefinitly.

 also try manually set screens as shown and run Project only with testItem1 (uncheck others)

 

Other possible thing is mis-idedifying close button on main application.

try just open main app(one at back gound ) only and run only testItem1 

(Run the project only contains testItem1) if this close main app, thst means problem with mapping

View solution in original post

2 REPLIES 2
NisHera
Valued Contributor

Re: Running a Project vs. Running a Script

If you have set up events in other tests to be fired end of test, can be triggered after time out set up for 1 min.

So try with timout =0 ie indefinitly.

 also try manually set screens as shown and run Project only with testItem1 (uncheck others)

 

Other possible thing is mis-idedifying close button on main application.

try just open main app(one at back gound ) only and run only testItem1 

(Run the project only contains testItem1) if this close main app, thst means problem with mapping

View solution in original post

katreenmei_nare
Occasional Contributor

Re: Running a Project vs. Running a Script

Hello NisHera,

 

Spoiler

 "If you have set up events in other tests to be fired end of test, can be triggered after time out set up for 1 min.

So try with timout =0 ie indefinitly."

 This solution worked!

 

Thank you very much for your reply. Much appreciated.

cancel
Showing results for 
Search instead for 
Did you mean: