LoadRunner Practitioners Forum
cancel

AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Highlighted
senpleck
Contributor.

AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Hello, when i play a scenario with Vugen and firefox i don't have any errors. But when i whant to ply him with a controler or in performance center, the script stop because of an error on a pop up : 'Ordinal': The specified value (2) is invalid

 

Why ? thank you for yours answers.

7 REPLIES
jayesh3010
Frequent Contributor.

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

I think you should try with another Object identification method.

it may be work.

 

jayesh

seelam
Trusted Contributor.

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Hi,

 

Try with different recording option using AJAX Trueclient and AJAX click&script Protocols.

 

And also try with URL Based recording from RECORDING options.

 

Compare the script with different tries, check what is getting record and what not.

 

Play with AJAX, its new one which is screwing our FRIENDS....

 

Cheers,

Krishna Seelam

 

Thanks,
Krishna Reddy Seelam
Harold Boyette
New Member.

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

I am encountering this same problem.  My theory is that when you're doing something like Activate Tab #2 (like when you click on something that brings up a PDF in another tab) that the script is attempting to activate the tab before your browser has had a chance to create the tab.  The script works fine when you're running in the editor because it's running slower and the tab is created before the Activate Tab #2 step runs.  But when running on the controller, the script runs faster and tries to activate the tab before it's been created.

 

There should be a command like WaitForBrowserTab to eliminate this issue.

 

Please contact me directly (boyetth@labcorp.com) if you want to discuss.  I really need a fix for this as well.

 

 

schand
Regular Contributor.

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Hi Harold,

Am referring to one of your old posts, but in my case am facing this issue lately.

So, application opens the PDF document in new Tab of same browser session and while replaying it fails at

Activate Tab #2(ordinal)

I have tried with each value of End event and failed to make it Pass.

Could you please help me here?. It is a showstopper for me.

Thanks

SC

Shlomi Nissim
Micro Focus Expert

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Hi SC,

Which version of LR/PC do you use? Which browser do you use?

Do you have to activate the tab with the PDF content? if you do not have to maybe you can just disable the step in order to avoid the issue.

If you need to verify the content of the PDF and for this reason you wish to activate tab, you might use the Verify PDF step instead, you will need to know the PDF URL in advance for that.

In case you are using TruClient IE,

> there is a fix for that in 12.53 patch 3 or maybe in a later patch that wasn't made public yet.

> If you contact HPE support you will get an hotfix from R&D.

Regards,

Shlomi

schand
Regular Contributor.

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Hi Schlomi,

Thanks for respoonding to my Question.

Here are the details requested:

1) We are using 12.50 LR/PC version

2) We have used Truclient IE protocol. Our standard IE version is 11.

3) Thing is, while we are recording the application itself, step(Activate Tab) was generated for the PDF openining in new Tab. Surprisingly, for initial iterations it ran Fine. But later on, it fails at that point. I have tried all the available End Events for that step, but it is failing at the step. It means in the replay browser it opens the PDF document in new tab but script is failing to execute "Activate Tab #2".

For verify PDF content, i need to know the URL which dynamically changes, so it might be challenging for me to get the PDF URL. I might not go with this option. What do you say?.

Interesting point is, we Close Tab following Activate Tab step. So, if i disable Activate Tab step and play, Close Tab step gets executed successfully.

Please help me to resolve the issue in current version of LR.

Thanks

Sharath

Shlomi Nissim
Micro Focus Expert

Re: AJAX Truclient Error : 'Ordinal': The specified value (2) is invalid

Hi Sharath,

If you can upgrade to 12.53 and consume the latest patch (soon to be released) a fix is included in it for this issue.

if you cannot do so please contact HPE support and you will get the help required in order to successfully work with 12.50

Regards,

Shlomi