Highlighted
Regular Contributor.
Regular Contributor.
147 views

Transaction with same name is already open error in performance center execution true client script

Vugen script iteration is passing ,but while executing in the performance center ,one of the click event failing running with 6 users and getting the Object not found error for click text box event and also getting another error " A transaction with the same name already open"

What could be the cause as it's working fine in vugen.In script parameterization done even in xpath and serch replaced with the parameter name.
0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Check your script logic.

You probably have two transactions started with the same name, and the first is not closed before the second is started.

It might not be a trivial flow, as you mention it works in VuGen. Try in VuGen multiple iterations and see if you manage to reproduce there too.

It does not seem like a conflict between VUsers.

Gil

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

There is no duplicate names in the script verified.
Initial developed script working fine with multiple users also ,the modification did is changed the scenarios number and also added the serach term as parameter and given the parameterised xpath on few steps.
This is working fine on multiple iterations on vugen but failing with the click text box with object not found error and for next iteratins getting failures saying transaction name is already open
The same logic ( parameterised for a serch term from dat file and also xpath all same )did for few other scripts ,out of two scripts having the similar issue
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

@PraveenSharmaI expect that when the error occurs the open transaction is no closed, but the next iteration is started. Did you use java script to start/end the transactions? I expect that when you use the TruClient logic to start/end transactions, those open transactions will fail when an error occurs.

Try to make your script more robust and handle the " the click text box with object not found error".

Tip: protect each step with object 'validation' or wait-for-object, so you do not get out of sync with script execution.

Success, Erik

Signature:
Reward community members who take time to respond and help.
0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

No ,we haven't used the javascript logic for transaction naming .

We used javascript for certaiks steps which take input as parameters.
For this error ,we implemented the error handling to the dashboard so that for the first time if input text not get will catch and will reload to get to proceed .Most of the cases the dashboard page this steps was failing.
Also there was already the waitobject ,but the action even of all previous seps for the wait to check made as Document loaded end event.
Also changed the text input action end as network completed ,which was creating more error .
With these customized run get few error compared to the larger count from previuos test.
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.