Results 1 to 4 of 4

Thread: On error skip action

  1. #1
    Geek_Guest
    Guest

    On error skip action

    I have 3 actions like action1, action2, action3 in action. While executing after completion of action1 execution I want execute action2. while action1 executing if i get any error, how can i skip from that action?

    Question asked by visitor narender


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Smile Re: On error skip action

    Hey,

    U could code a return value for your Action 1 or set a flag variable to "TRUE" incase the last step of your action gets completed successfully.

    Trap this flag variable value and verify it at the beginning of your Action 2. Incase it is TRUE, go ahead and proceed with action 2 else stop execution and revert back to the stage required.

    But incase you want to continue inspite of an error occuring in Action 1, code an error handler and use the On Error continue statement.

    But I would not recommend this unless neccessary.

    Cheers


  3. #3
    Contributing Member
    Join Date
    Oct 2007
    Answers
    30

    Re: On error skip action

    ExitAction


  4. #4
    Junior Member
    Join Date
    Dec 2006
    Answers
    9

    Re: On error skip action

    hi,

    Thanks for the update.Actually i am new to QTP.could you please tell me how to start learning should i prefer to joing any institute but every body is only teaching the record playback option only & not telling about the scripting to test.Could you help me in this regard.

    I have an experience of around 2 yrs in manual testing of web applications please guide me how can i updgrade myself as still i am not earning too good after this experience.

    also please explain me the genral QA process in a good company.

    I really oblize to you to answer these quiries of mine.

    Waiting for your response.
    Thanks,
    Ashish Handa


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact