Highlighted
Absent Member.
Absent Member.
114 views

How to send Paramameter when many Action use Same Value

How to send Paramameter via workflow

when many Action use Same Value in 1 Vuser Script




[[[ for example ]]]

Action1__Create Application Number 111

Action2__Search Application Number 111 that create from Action1

Action3_Submit Task Application Number 111



How to capture new Application ID from Action1__Create???

And if I get Application ID from Action1...

What's parameter in Action2__Search???
Can we use parameter name same as Action1__Create???

We have to clear any value for example session because I am not sure that Application ID from Action1_Create can send to Action2_Search ???


Many Thanks ^___^
An Investment in education always pays the best returns
0 Likes
7 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to send Paramameter when many Action use Same Value

Hi,

I think what you are wanting to do is correlation- capturing of dynamic data.

To correlate refer Chapter 54 of the Virtual User generator guide.

Also to use data across various script you may need to user file handling operations.
Write the output to text files and read for processing.

Hope this helps
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to send Paramameter when many Action use Same Value

Dear SPP,

I use correlation for Applcation ID and other values in script..


If I run only Action1_Create ...or...

Action2_Search individual ..it will pass


But when I merge 2 script to 1 script (2 Action)

=============================================

vuser_init >>>no record this section



Create USER >>>Action1_Create (Login+Create+Logout)



View User >>>Action2_Search
(Login+Search+Logout)


vuser_end>>>no record this section


=============================================

It will fail.....after Action1_Create


Note :: Create and Search user Different User ID to log in
An Investment in education always pays the best returns
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to send Paramameter when many Action use Same Value

On the other hand,
If you are trying to parameterize.
i.e you know the value of application number then you can create a parameter in globals.h->Global variables.

However here you will have to define the variable something like
char * name= {"{username}"};
where username is your parameter.


now this {username} can be used across different action segments of a script.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to send Paramameter when many Action use Same Value

Hi,

Here is what I understand from above.
you have 2 Business process - Create, Search

Ideally you should create 2 different scripts likewise
1. login->Create->logout
2. login->search->logout


Correlate each of the script individually or create a correlation rule.

the above should help you execute create and search scripts simultaneoulsy .
else if they are in same script with different action segment then action2 can only be executed after action1 is complete.

Hope this helps
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to send Paramameter when many Action use Same Value

Dear SPP,

And How to Capture << new Application number >>>when I create it...


Is it importanct to write in File...or

It can recieve value and then sent to Search action via parameter ^___^

An Investment in education always pays the best returns
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to send Paramameter when many Action use Same Value

If the application number is a dynamic value(returned from server) then use correlation.
You can refer to Virtual User Generator guide on how to work with correlation.

If the application number is a known value then create a parameter file and append all know numbers.

0 Likes
Highlighted
Established Member..
Established Member..

Re: How to send Paramameter when many Action use Same Value

What I understood from ur conversation that there are two script in a single script....
like, login-->create-->logout and login-->create2-->...if this is the scenario then add the function to clear cache and cookies between the two script....it will work.

Thanks,
Prasenjit
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.