Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..
422 views

TruClient: incoherence between VuGen and Develop Mode

Hi everyone, 

I've a particular problem with a TruClient script: if I execute it in Develop Mode (so in graphic mode) the navigation is Ok, but if I run the same case in VuGen Log mode or by a Controller through some generators the script failed with the error message below

    Click on Ok button ** failed - target object was not found
 
There's an incoherence between the result provided with the Develop Mode and the VuGen execution.
Thanks for collaboration, 
 
Lorenzo 
0 Likes
3 Replies
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: TruClient: incoherence between VuGen and Develop Mode

Hi Lorenzo,
The error message indicates that when TruClient tried to click the "Ok button" object, it was not able to find it.
The possible reasons vary: The page is rendered differently in the browser or the page has not fully loaded when TruClient was trying to access the object.
I'd suggest to first review the error snapshots and, if needed, add snapshots for each step (set snapshots to "Always"), to understand the application behavior in the non-interactive replay and to modify the script accordingly (add wait steps, modify the object identification etc.).

Edo
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: TruClient: incoherence between VuGen and Develop Mode

Hi, thanks so much for the response. 

I've tryed to set the snapshot's level to "Always" and "On error" but the images are about the Develop execution, so there isn't an evidence of the error because in interactive mode the run finished fine. Also I've insered many wait and make some times the "Replace" option on the indicted button but the results is the same: the run failed in VuGen/Controller mode and is Ok in Develop Mode. For instance, the error stay in logout fase. 

Below, an image of the button that caused the error: it's about a logout popup. 

screenERROR.PNG

 

Can you have another idea?

Best regards, 

Lorenzo

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: TruClient: incoherence between VuGen and Develop Mode

I've resolved the problem changing the identification of the button object in "Java" mode: now the navigation can continue both in Develop and VuGen mode. 

Thanks for the support, 

Lorenzo

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.