Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why my ExitAction is not run
#1
Solved: 10 Years, 9 Months, 1 Week ago Question 
Hi Friends,
I see ExitAction statement in my code is not working. I see during my debugging the flow is going through this "ExitAction" statement. but its not doing anything there. why does it happen.

I observed it working 1 or 2 times earlier. there is no change in the code for this. plzzzzzz help me.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
Whats the error you are getting?
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
i'm not getting any error. But its just running through the statement. didn't understand how can it pass through not executing it.
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
I think you are trying in the test, if so use 'ExitTest'.

Reply
#5
Solved: 10 Years, 9 Months, 1 Week ago
Hi Saket,
Thanks for the reply. Exittest would exit out of the entire test. I want to only exit from action ( this is a call to exit from a re-usable action )
Reply
#6
Solved: 10 Years, 9 Months, 1 Week ago
Can you paste your lines of codes?

Reply
#7
Solved: 10 Years, 9 Months, 1 Week ago
Code:
If  Window("CCP").FlexApplication("Main").FlexTitleWindow("Select / Manage Community").Exist(2) Then
                notLaunched = 1
                logger "info",  "Application started in " & DateDiff("s", curTime, Now) & " seconds"
                Reporter.ReportEvent micDone, "Application", "Application started in " & DateDiff("s", curTime, Now) & " seconds"
                wait 3
                ExitAction(2)
            Else
                notLaunched = 0
                logger "info",  "CCP Failed to Launch after waiting " & DateDiff("s", curTime, Now) & " seconds"
                Reporter.ReportEvent micDone, "Application", "CCP Failed to Launch after waiting " & DateDiff("s", curTime, Now) & " seconds"
                Reporter.ReportEvent micDone, "Application", "CCP is Relaunching NOW " & DateDiff("s", curTime, Now) & " seconds"
            End If
Reply
#8
Solved: 10 Years, 9 Months, 1 Week ago
does only 'ExitAction' without argument( return value) work?

Reply
#9
Solved: 10 Years, 9 Months, 1 Week ago
No Saket. I tried that earlier. It didn't work ! Sad

Hi Saket,
This is fine. I'll try to figure out. Can u help me for my other query .. related to the variable scope.
Reply
#10
Solved: 10 Years, 9 Months, 1 Week ago
No this is critical. I am not able to understand why it is not working here.
it should work if you are calling this in an action.
have you tried this in a fresh action? I mean create an action put the exitAction statement there and call the action in a Test.
let me know if that works.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ExitAction mv8167 4 13,957 04-26-2011, 10:07 PM
Last Post: vIns

Forum Jump:


Users browsing this thread: 1 Guest(s)