siva90 Absent Member.
Absent Member.
11322 views

Hello,

Am new to silk performer I have recorded a script with single user login function. After customizing the username and password when i execute the try script it is just picking the username and not the password and shows please enter your password  have attached my script below. Can anybody explain y it is happening 

@codepage(1252)

benchmark SilkPerformerRecorder

use "WebAPI.bdh"

dclparam
psLogin1Column11 : string;
psLogin1Column21 : string;
use "kernel.bdh"

dcluser
user
VUser
transactions
TInit : begin;
TMain : 1;
TShutdown : end;

var
hLogin11 : number;

dclrand

dcltrans
transaction TInit
begin
FileCSVLoadGlobal(hLogin11, "Login1.csv", ",");
WebSetBrowser(WEB_BROWSER_MSIE8);
WebModifyHttpHeader("Accept-Language", "en-gb");
//WebSetUserBehavior(WEB_USERBEHAVIOR_FIRST_TIME);
//WebSetDocumentCache(true, WEB_CACHE_CHECK_SESSION);
end TInit;

transaction TMain
var
begin
FileGetNextUniqueRow(hLogin11);
psLogin1Column11 := FileGetCol(hLogin11, 1, STRING_COMPLETE);
psLogin1Column21 := FileGetCol(hLogin11, 2, STRING_COMPLETE);
SetEncoding("UTF-8");

WebPageAddUrl("images/ltc.gif");
WebPageAddUrl("images/lbc.gif");
WebPageAddUrl("images/h_back2.jpg");
WebPageAddUrl("images/rtc.gif");
WebPageAddUrl("images/rbc.gif");
WebPageAddUrl("images/header.png");
WebPageAddUrl("images/pimp1.gif");
WebPageAddUrl("images/pimp2.gif");
WebPageAddUrl("images/pimp3.gif");
WebPageAddUrl("images/ltc1.gif");
WebPageAddUrl("images/lbc1.gif");
WebPageAddUrl("images/rtc1.gif");
WebPageAddUrl("images/rbc1.gif");
WebPageUrl("http://demo.borland.com/InsuranceWebExtJS/index.jsf", "InsuranceWeb: Home");

ThinkTime(6.9);
WebPageSubmit("login-form", LOGIN_FORM001, "InsuranceWeb: Home (#1)"); // Form 2

// Redirecting http://demo.borland.com/InsuranceWebExtJS/index.jsf
// -> (redirection) http://demo.borland.com/InsuranceWebExtJS/index.jsf
ThinkTime(3.2);
WebPageSubmit("logout-form", LOGOUT_FORM002, "InsuranceWeb: Home (#2)"); // Form 2
end TMain;

transaction TShutdown
begin
FileUnload(hLogin11);
end TShutdown;

dclform
LOGIN_FORM001:
"login-form" := "" <USE_HTML_VAL> , // hidden, unchanged, value: "login-form"
// "login-form:email" := "nn@gmail.com", // changed
"login-form:email" := psLogin1Column11,
// "login-form:password" := Decrypt3DES("BV5WlcIowSnx"), // changed
"login-form:password" := Decrypt3DES(psLogin1Column21),
"javax.faces.ViewState" := "" <USE_HTML_VAL> , // hidden, unchanged, value: "j_id1:j_id2"
"login-form:login.x" := "53", // added
"login-form:login.y" := "6"; // added

LOGOUT_FORM002:
"logout-form" := "" <USE_HTML_VAL> , // hidden, unchanged, value: "logout-form"
"javax.faces.ViewState" := "" <USE_HTML_VAL> , // hidden, unchanged, value: "j_id1:j_id3"
"logout-form:logout.x" := "45", // added
"logout-form:logout.y" := "8"; // added

0 Likes
1 Solution

Accepted Solutions
Highlighted
ckim9 Absent Member.
Absent Member.

RE: Login

Jump to solution

I take that your password in the data file is not encrypted (i.e. clear text). Then you should not call Decrypt3DES().

View solution in original post

0 Likes
2 Replies
arwin Absent Member.
Absent Member.

RE: Login

Jump to solution

Hello Shiva, Have you created the data file of the passwords with per transaction? if yes then delete the customization in the code part and custoize the password again. when you create choose random file, and in the last part choose per usage and not per transaction. Hope this will help.

Regards

Arwin

0 Likes
Highlighted
ckim9 Absent Member.
Absent Member.

RE: Login

Jump to solution

I take that your password in the data file is not encrypted (i.e. clear text). Then you should not call Decrypt3DES().

View solution in original post

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.