Highlighted
New Member.
1571 views

Oracle NCA Script error only on 2nd iteration

Jump to solution

Hi All,

 

I am working on Retek Merchandising System scripting.

The script works fine for the first iteration perfectly fine, and at a particular step in the second iteration returns the ifError(100);

 

Note that the script has about 8 action sections with the following flow:

(VUSER_Init > Launch) - Init Section

(NavigateDeals -> DealMenu ->DealHeader ->DealComponents ->DealLocationThresholds -> SubmitDeal) - Action Section

(VUSER_End) - End Section

 

Steps at which it is failing is

 

nca_set_window("Add Deal Item/Location         (dealmain2)");
 nca_button_press("B_ITLC_ADD_PB_OK_0");
 lr_think_time(5);
 nca_set_window("Deal Maintenance                (dealmain2)");
 nca_button_press("B_MAIN_ACTION_PB_SAVE_0");
 nca_tab_select_item("C_ITEMLOC_THRESH", "Thresholds");

 

and sometimes at this step:

lr_start_transaction("SaveLocThreshold_Deal");

nca_button_press("B_MAIN_ACTION_PB_SAVE_0");

lr_end_transaction("SaveLocThreshold_Deal", LR_AUTO);

 

Funny enough, if i move the signout and signin into the action (ie. logout and close application as part of the action block), the script works fine.

 

Any pointers as to what may be wrong?

 

Regards,

AJ

0 Likes
1 Solution

Accepted Solutions
Highlighted
New Member.

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

Hi Mario,

 

Thanks for the response.

Tried it ... not working.

I also tried playing around with NCATimerWaitMode and still no luck.

Looks like some kind of bug to me.

 

Regards,

AJ

View solution in original post

0 Likes
6 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

Hello

This is related to the logic of your script, while running iterations or running on controller, only the ACTION block will be repeated, init and end part will only run once, so the place where the action block start must be the same place where it ends, in example, if your action block start in one specific window or main page, is in that same main page were it msut finish or it will not be able to repeat the process, that is why moving the login and logout to the action makes the trick, besides this, there is a small chance you are missing some correlation, but is more likely to be caused by script logic.

 

hope this helps.

 

 

regards

 

 


HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

You could try to the option to "emulate a new user on each iteration" from the Run Time Settings-> Browser Emulation.

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Highlighted
New Member.

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

Hi Editus,

 

Thanks for the response.

 

@Block Logic

The second iteration fails only at about 3/4ths down the Action block.

So its not the case of the action block not ending up at the starting state for the next iteration.

it even goes through 3 / 4 different screens of the next iteration before failing with ifError.

And note, that the error is not to do with any ui component not shown or not existing.

 

@Correlation

The script plays back fine when the login logout is moved to the action block.

I dont think then that correlation is the issue here.

 

Regards,

AJ 

0 Likes
Highlighted
New Member.

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

Hi Mario,

 

Thanks for the response.

Tried it ... not working.

I also tried playing around with NCATimerWaitMode and still no luck.

Looks like some kind of bug to me.

 

Regards,

AJ

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

I would look into the login section then and see what got recorded and make sure that only what is needed to login is there. Amything extra should be placed in the section that follows.

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Highlighted
Contributor.
Contributor.

Re: Oracle NCA Script error only on 2nd iteration

Jump to solution

This simple solution worked for me. Thanks a lot @Suerte13cr

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.