Wednesday, October 9, 2013

Validating a transaction by using the web_reg_find

web_reg_find("Text=Thank You",
       "SaveCount=ThankYouPageCount",
  LAST);

    nFound = atoi( lr_eval_string("{ThankYouPageCount}") );
    if (nFound == 0){
    lr_end_transaction("Scn03_Screen72_ThankYou", LR_FAIL);
    }
    else{
    lr_end_transaction("Scn03_Screen72_ThankYou", LR_PASS);
    }

No comments:

Post a Comment