Project attributes for session login
We are planning to do GUI-Level Testing for our load project. When we model our script, there is option for "Use project attributes for session login" . It will generate the code like below.
AttributeGetString ("Username", sUser)
AttributeGetString ("Password", sPasswd)
StInitSession(sUser, sPasswd, nColor)
If we plan not to get the username and password from attribute setting, can we read it directly from a file? How this can be done? Any code example. We just like to have different user/password for different sessions.
Re: Project attributes for session login
You can use custom data from a CSV file and then use it to call the StInitSession method with different values.
Please check Customization of form data from script using a csv file, where you can also find a video with step-by-step instructions to create parameters from an input file and to use each value for a different VUser.