Highlighted
Absent Member.
Absent Member.
244 views

fails to reproduce the recorded script

Jump to solution
fails to reproduce the recorded script, the field names are changed, that can be done?

web_edit_field("income",
"Snapshot=t19.inf",
DESCRIPTION,
"Type=text",
"Name=income",
"FrameName=main",
ACTION,
"SetValue=11111",
LAST);

web_edit_field("telNumber_22857533",
"Snapshot=t20.inf",
DESCRIPTION,
"Type=text",
"Name=telNumber_22857533",
"FrameName=main",
ACTION,
"SetValue=81111111111",
LAST);

lr_think_time(6);

web_edit_field("telCity_22857533",
"Snapshot=t21.inf",
DESCRIPTION,
"Type=text",
"Name=telCity_22857533",
"FrameName=main",
ACTION,
"SetValue=kiev",
LAST);

Reply log:

Action.c(194): web_edit_field("pos") was successful [MsgId: MMSG-26392]
Action.c(206): web_edit_field("income") was successful [MsgId: MMSG-26392]
Action.c(218): Error -26224: Edit field not found [MsgId: MERR-26224]
Action.c(218): Found 54 "INPUT" element(s) of type "text" in the browser/frame: [MsgId: MMSG-26175]
Action.c(218): [1] Name="compID", Id="" [MsgId: MMSG-26000]
Action.c(218): [2] Name="compName", Id="" [MsgId: MMSG-26000]
Action.c(218): [3] Name="pos", Id="" [MsgId: MMSG-26000]
Action.c(218): [4] Name="income", Id="" [MsgId: MMSG-26000]
Action.c(218): [5] Name="telNumber_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [6] Name="uowner_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [7] Name="powner_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [8] Name="telCity_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [9] Name="telStreet_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [10] Name="telHouse_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [11] Name="telFlat_1294470", Id="" [MsgId: MMSG-26000]
Action.c(218): [12] Name="telNumber_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [13] Name="uowner_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [14] Name="powner_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [15] Name="telCity_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [16] Name="telStreet_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [17] Name="telHouse_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [18] Name="telFlat_28652562", Id="" [MsgId: MMSG-26000]
Action.c(218): [19] Name="telNumber_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [20] Name="uowner_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [21] Name="powner_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [22] Name="telCity_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [23] Name="telStreet_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [24] Name="telHouse_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [25] Name="telFlat_23963479", Id="" [MsgId: MMSG-26000]
Action.c(218): [26] Name="telNumber_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [27] Name="uowner_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [28] Name="powner_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [29] Name="telCity_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [30] Name="telStreet_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [31] Name="telHouse_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [32] Name="telFlat_349434", Id="" [MsgId: MMSG-26000]
Action.c(218): [33] Name="adrZip_913741", Id="" [MsgId: MMSG-26000]
Action.c(218): [34] Name="adrStreet_913741", Id="" [MsgId: MMSG-26000]
Action.c(218): [35] Name="adrHouse_913741", Id="" [MsgId: MMSG-26000]
Action.c(218): [36] Name="adrKorp_913741", Id="" [MsgId: MMSG-26000]
Action.c(218): [37] Name="adrFlat_913741", Id="" [MsgId: MMSG-26000]
Action.c(218): [38] Name="adrDBeg_913741", Id="" [MsgId: MMSG-26000]
Action.c(218): [39] Name="adrZip_3090575", Id="" [MsgId: MMSG-26000]
Action.c(218): [40] Name="adrStreet_3090575", Id="" [MsgId: MMSG-26000]
Action.c(218): [41] Name="adrHouse_3090575", Id="" [MsgId: MMSG-26000]
Action.c(218): [42] Name="adrKorp_3090575", Id="" [MsgId: MMSG-26000]
Action.c(218): [43] Name="adrFlat_3090575", Id="" [MsgId: MMSG-26000]
Action.c(218): [44] Name="adrDBeg_3090575", Id="" [MsgId: MMSG-26000]
Action.c(218): [45] Name="adrZip_1045393", Id="" [MsgId: MMSG-26000]
Action.c(218): [46] Name="adrStreet_1045393", Id="" [MsgId: MMSG-26000]
Action.c(218): [47] Name="adrHouse_1045393", Id="" [MsgId: MMSG-26000]
Action.c(218): [48] Name="adrKorp_1045393", Id="" [MsgId: MMSG-26000]
Action.c(218): [49] Name="adrFlat_1045393", Id="" [MsgId: MMSG-26000]
Action.c(218): [50] Name="adrDBeg_1045393", Id="" [MsgId: MMSG-26000]
Action.c(218): [51] Name="pidSeries_20955899", Id="" [MsgId: MMSG-26000]
Action.c(218): [52] Name="pidNumber_20955899", Id="" [MsgId: MMSG-26000]
Action.c(218): [53] Name="pidDate_20955899", Id="" [MsgId: MMSG-26000]
Action.c(218): [54] Name="pidOrgname_20955899", Id="" [MsgId: MMSG-26000]
Action.c(218): web_edit_field("telNumber_22857533") highest severity level was "ERROR" [MsgId: MMSG-26391]
Abort was called from an action.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
0 Likes
1 Solution

Accepted Solutions
Highlighted
Established Member..
Established Member..

Re: fails to reproduce the recorded script

Jump to solution
Hi Zamis,

Ok then you really need to correlate them otherwise script wont work.

To correlate you have to use web_reg_save_param. For using web_reg_save_param use Vugen functional reference guide, It will teach you in detail with example.

Vugen>Help>Function Reference


Thanks
Champ

View solution in original post

10 Replies
Highlighted
Established Member..
Established Member..

Re: fails to reproduce the recorded script

Jump to solution
Hi Zamis,

Can you please elaborate on what you want?

Thanks
Champ
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: fails to reproduce the recorded script

Jump to solution
every time a new session identifier telCity_22857533 change, how to change the value of this field?
0 Likes
Highlighted
Established Member..
Established Member..

Re: fails to reproduce the recorded script

Jump to solution
Hi Zamis,

Is 22857533 value getting changed everytime?
If so please correlate it. This problem will be solved.

Thanks
Champ
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: fails to reproduce the recorded script

Jump to solution
If its coming as server response then capture and replace it.

Use web_reg_save_param function.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: fails to reproduce the recorded script

Jump to solution
Yes Champ, Yes is 22857533 value getting changed!
vpathak78 how to use web_reg_save_param in this case?
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: fails to reproduce the recorded script

Jump to solution
I have such identifiers in the form of very many, some start as "cp45876438g325442" and they changed "45876438g325442"
0 Likes
Highlighted
Established Member..
Established Member..

Re: fails to reproduce the recorded script

Jump to solution
Hi Zamis,

Ok then you really need to correlate them otherwise script wont work.

To correlate you have to use web_reg_save_param. For using web_reg_save_param use Vugen functional reference guide, It will teach you in detail with example.

Vugen>Help>Function Reference


Thanks
Champ

View solution in original post

Highlighted
Absent Member.
Absent Member.

Re: fails to reproduce the recorded script

Jump to solution

and even if you noticed Reply log on my form three telNumber:
telNumber_1294470
telNumber_23963479
telNumber_349434
and all they need to fill
0 Likes
Highlighted
Established Member..
Established Member..

Re: fails to reproduce the recorded script

Jump to solution
Hi Zamis,

If every telNumber filed is changing dynamically then each and every value should be correlated.
It will work out.

Good Luck!!!

Thanks
Champ
Highlighted
Absent Member.
Absent Member.

Re: fails to reproduce the recorded script

Jump to solution
Thank you very much! )
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.