Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..
2502 views

How to Correlate values that are there in Cookies

Due to Community restrictions i am unable to post the data here. Attaching the same in word document. Please have a look and let me know the possibilities.

Thanks,

Vishnu.

0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.

Re: How to Correlate values that are there in Cookies

If you have instances of web_add_cookie API in your script, you can correlate the cookies by selecting the correlatable text and activating the "Correlate selection" command from the context menu. If the cookies are not mentioned in the script, then no correlation is needed.

Highlighted
Absent Member.
Absent Member.

Re: How to Correlate values that are there in Cookies

I have web_add_cookie in my script.By meaning context menu do you mean right click and correlate?

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: How to Correlate values that are there in Cookies

To add to what  GalShadeck said ...

Try commenting out the cookie calls in the script. If the script runs fine then, you most likely don't need to correlate anything in them.

Highlighted
Frequent Contributor.. Frequent Contributor..
Frequent Contributor..

Re: How to Correlate values that are there in Cookies

Hi,

I am sorry for not replying for so many days. I compleately forgot that i have an account here 🙂 and i requested some thing.

Still i do have the same problem. I am sorry if i am dumb here. Below i am posting the recording and reply snapshots of my script. Can you validate that one and please tell me how to correlate the JSESSION ID, whhich is not available in the script.

Apart from that i am attaching my script also. The below snapshots are for the step 

lr_save_string(lr_decrypt("56e28da6e"), "PasswordParameter");

    web_submit_data("login.jsp",

 

Beow is the Recrding snapshot.

Request :

POST /webtop/custom/wdk/system/login/login.jsp HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: https://<domain name>/webtop/component/main
Accept-Language: en-US
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko
Content-Type: application/x-www-form-urlencoded
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
Host: <DOmain Name>
Content-Length: 810
DNT: 1
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=C86936EDD4A5D80C6F7FD15958235115; d6_wdk_pref0=eJxNjM0KgzAQBp9F8Fismx+txT0Weuit9ByCWUWISdDk/ZscWrzsMh/M1NDjrO1BY1W3gM+gIh0xA3DMlzMU+bEB7yBuwyXsRhk/sTIC4Bnbvggg/zkuTjnOEYSUwGCATg5FEByzmzZyMW2ZpcBH2n2g68s7412pdb+aDsGuk46rd43Vbkl6ocbQrJONyvpJW0Jy6vMeqy8m6z7j; appname=webtop; wdk_sess_cookie_0=eJxTMTGztVFUMTC09SiIL0ktLgFyTMxtnS3MLI3NXF1cTBxNXSwMnM3czN1cDE0tTS2MjE0NDU1Bqixsk3MSi4szk0EcS6ApAMytErI.; BIGipServer<Domain Name>-8443=!zziDNy5tOSL6ODz6dTLyfdYp9GgP7bUQbTNnc8pyFwix25371XpE5OGQnAvuXysHgJmLleRbWoxehQw=; lockFresh=free; allFreshClient=%%cookieTS__client2036229066##1457687891677%%__dmfFreshClient__client2036229066##stale%%__dmfFreshForm__client2036229066##1457687891676

__dmfFormId=Login_0&__dmfAction=Login_0_onLogin&__dmfHandler=Login_0_Login_0&__dmfHandlerArgs=Login_0_&__dmfControl=Login_0_Login_loginButton_0&__dmfUseModalPopup=false&__dmfModalPopupWindowSize=&__dmfRefreshParentWindow=&__dmfFromModalPopup=false&__dmfTargetWindowName=1457687891679&__dmfModalPopupEnabled=true&__dmfDepth=0&__dmfServletPath=%2Fcustom%2Fwdk%2Fsystem%2Flogin%2Flogin.jsp&Login_username_0=Hp_test&Login_password_0=HpTest2016FEB%24&Login_docbase_0=prd_doc24&__dmfRequestId=__client2036229066%7E%7E1&__dmfHiddenX=0&__dmfHiddenY=0&__dmfFormclass=com.documentum.web.formext.session.Login&__dmfNlsclass=com.documentum.webtop.session.LoginNlsProp&__dmfInitDocbase=&__dmfInitDocbaseUser=&__dmfInitDocbasePassword=&__dmfInitDocbaseDomain=&__dmfInitLocale=&__dmfSerialNumber=0&__dmfClientId=1457687891679


Response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Content-Type-Options: nosniff
Set-Cookie: JSESSIONID=0B8ED22920879AE54BE47773C870E6E3; Path=/webtop/; Secure
Set-Cookie: appname=webtop; Path=/webtop; Secure
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 11 Mar 2016 09:18:44 GMT


<html>
<head>
<title>Redirect</title>
<script type="text/javascript" src='/webtop/wdk/include/trace.js'></script>
<script type="text/javascript" src='/webtop/wdk/include/locate.js'></script>
<script type="text/javascript">
function onLoad()
{

var strUrl = new Object;
var strUrlString = addBrowserIdToURL('\x2Fwebtop\x2Fcomponent\x2Fmain\x3F__dmfClientId\x3D1457687891679\x26__dmfTzoff\x3D0\x26__dmfSecureId\x3D8508608265379781474\x26__dmfRequestId\x3D__client2036229066\x7E\x7E\x2D886310113\x26__dmfJumpType\x3Djump');
strUrl.src=addBrowserIdToURL(strUrlString)
+ "&__dmfTzoff=" + new Date().getTimezoneOffset();
navigateToURL(strUrl.src, "redirectForm", window)
}
</script>
</head>
<body onload="onLoad();"></body>
</html>

 

Below is the Replay snapshot.

Request:

POST /webtop/custom/wdk/system/login/login.jsp HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Referer: https://<Host Name>/webtop/component/main
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko
Accept-Encoding: gzip, deflate
Accept-Language: en-US
Accept: */*
Connection: Keep-Alive
Host: <Host Name>
Cookie: JSESSIONID=AA68EB996FCED4603AF609B5A2141D1A; appname=webtop; d6_wdk_pref0=eJxNjM0KgzAQBp9F8Fismx+txT0Weuit9ByCWUWISdDk/ZscWrzsMh/M1NDjrO1BY1W3gM+gIh0xA3DMlzMU+bEB7yBuwyXsRhk/sTIC4Bnbvggg/zkuTjnOEYSUwGCATg5FEByzmzZyMW2ZpcBH2n2g68s7412pdb+aDsGuk46rd43Vbkl6ocbQrJONyvpJW0Jy6vMeqy8m6z7j; BIGipServer<Host Name>-8443=!J1Jj8Ku2RG8VPSf6dTLyfdYp9GgP7RvfWM6AoItxnWS/nqTViBrZ2qXJ1HB3r5GpCN5dPB6wrltfXQU=; wdk_sess_cookie_0=eJxTMTGztVFUMTC09SiIL0ktLgFyTMxtnS3MLI3NXF1cTBxNXSwMnM3czN1cDE0tTS2MjE0NDU1Bqixsk3MSi4szk0EcS6ApAMytErI.; lockFresh=free; allFreshClient=%%cookieTS__client2036229066##1457687891677%%__dmfFreshClient__client2036229066##stale%%__dmfFreshForm__client2036229066##1457687891676
Content-Length: 810

__dmfFormId=Login_0&__dmfAction=Login_0_onLogin&__dmfHandler=Login_0_Login_0&__dmfHandlerArgs=Login_0_&__dmfControl=Login_0_Login_loginButton_0&__dmfUseModalPopup=false&__dmfModalPopupWindowSize=&__dmfRefreshParentWindow=&__dmfFromModalPopup=false&__dmfTargetWindowName=1457687891679&__dmfModalPopupEnabled=true&__dmfDepth=0&__dmfServletPath=%2Fcustom%2Fwdk%2Fsystem%2Flogin%2Flogin.jsp&Login_username_0=Hp_test&Login_password_0=HpTest2016FEB%24&Login_docbase_0=prd_doc24&__dmfRequestId=__client2036229066%7E%7E1&__dmfHiddenX=0&__dmfHiddenY=0&__dmfFormclass=com.documentum.web.formext.session.Login&__dmfNlsclass=com.documentum.webtop.session.LoginNlsProp&__dmfInitDocbase=&__dmfInitDocbaseUser=&__dmfInitDocbasePassword=&__dmfInitDocbaseDomain=&__dmfInitLocale=&__dmfSerialNumber=0&__dmfClientId=1457687891679


Response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Content-Type-Options: nosniff
Content-Encoding: gzip
TIMEOUTOP: true
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 11 Mar 2016 10:41:27 GMT

<html>
<head>
<script type="text/javascript" src='/webtop/wdk/include/trace.js'></script>
<script type="text/javascript" src='/webtop/wdk/include/locate.js'></script>
<script type="text/javascript">var g_virtualRoot = "/webtop";</script>

<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/dragdrop.css" type="text/css">
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/richtexteditor.css" type="text/css">
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/webforms.css" type="text/css">
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/xforms.css" type="text/css">
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/xforms_styles.css" type="text/css">
<link rel="stylesheet" href="/webtop/webtop/theme/documentum/css/webtop.css" type="text/css">
<!--[if lte IE 6]>
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/ie6/webforms_ie6.css" type="text/css">
<![endif]-->
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/media/screen.css" media="screen" type="text/css">
<link rel="stylesheet" href="/webtop/wdk/theme/documentum/css/media/print.css" media="print" type="text/css">

<script type="text/javascript">var Trace_TRACE=false;var Trace_WDK=false;var Trace_LOCATE=false;var Trace_CLIENTEVENTS=false;var Trace_SCROLL=false;var Trace_FORMNAVIGATION=false;var Trace_COMPONENTNAVIGATION=false;var Trace_FRAMENAVIGATION=false;var Trace_HELP=false;var Trace_MODAL=false;var Trace_CONTENTTRANSFER=false;var Trace_TREE=false;var Trace_APPINTGEVENTS=false;var Trace_PORTALWINDOWING=false;var Trace_CONTROLS=false;var Trace_AUTOCOMPLETE=false;var Trace_CONTROLS=false;var Trace_INLINEREQUEST=false;var Trace_INLINEREQUESTCALLBACKS=false;var Trace_BASE64=false;var Trace_TIMEOUT=false;</script>
<script>var g_RTLLocale = 'false';</script>
<script src="/webtop/wdk/include/trace.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/wdk.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/locate.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/events.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/scroll.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/formnavigation.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/componentnavigation.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/framenavigation.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/help.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/modal.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/contenttransfer.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/tree.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/appintgevents.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/windows.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/controls.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/autoComplete.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/hotkeys.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/inlinerequest.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/inlinerequestcallbacks.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/base64.js" type="text/javascript"></script>
<script src="/webtop/wdk/include/timeouthandler.js" type="text/javascript"></script>


<title>Timeout</title>
<script type="text/javascript">
function relogin()
{
setTimeout("loginRedirect()", 3000);
}

function loginRedirect()
{
fireAppIntgEvent("event=HideDialog");
fireAppIntgEvent("event=SessionTimeout");
var targetWindow = getTopLevelWnd();
if (window.getWindowOpener())
{
targetWindow = getTopLevelWndForApplication();
}
var strUrl = addBrowserIdToURL(g_virtualRoot+"/component/main");
navigateToURL(strUrl, "timeout", targetWindow,true);
if (window.getWindowOpener())
{
window.close();
var wndCopy = window;
while (wndCopy.getWindowOpener && wndCopy.getWindowOpener().dialogArguments)
{
wndCopy.getWindowOpener().close();
wndCopy = wndCopy.getWindowOpener();
}
}
}
</script>
</head>
<body class='contentBackground timeoutBodyMargin' topmargin='10' bottommargin='10'
marginheight='10' marginwidth='13' onload='relogin()'>

<script type='text/javascript'>
if (typeof overlayItems != "undefined")
{ overlayItems = new Array(); controlData = new Array(); }
</script>


<script type='text/javascript'>wdk.modalPopupConfig.WindowSize.register('small', 400, 370); wdk.modalPopupConfig.WindowSize.register('medium', 550, 450); wdk.modalPopupConfig.WindowSize.register('large', 775, 575); wdk.modalPopupConfig.WindowSize.register('properties', 610, 590); wdk.modalPopupConfig.WindowSize.register('messagearchiveviewer', 800, 600); wdk.modalPopupConfig.WindowSize.register('messagearchiveproperties', 580, 590); wdk.modalPopupConfig.WindowSize.register('advancedsearch', 825, 600); </script>

<script type="text/javascript">var g_bWindowInitialised=false;</script>
<form name='Form_0' id='Form_0' action='/webtop/wdk/timeout.jsp' method='post'>
<input type='hidden' name='__dmfFormId' value='Form_0'><input type='hidden' name='__dmfAction'><input type='hidden' name='__dmfHandler'><input type='hidden' name='__dmfHandlerArgs'><input type='hidden' name='__dmfControl'><input type='hidden' name='__dmfUseModalPopup'><input type='hidden' name='__dmfModalPopupWindowSize'><input type='hidden' name='__dmfRefreshParentWindow'><input type='hidden' name='__dmfFromModalPopup' value='false'><input type='hidden' name='__dmfTargetWindowName' value='1457687891679'><input type='hidden' name='__dmfModalPopupEnabled' value='true'><input type='hidden' name='__dmfDepth' value='0'><input type='hidden' name='__dmfServletPath' value='/wdk/timeout.jsp'>
<!-- action=-->

<h3><span class='defaultLabelStyle'>Timeout</span> </h3>
<span class='defaultLabelStyle'>A timeout has occurred due to inactivity.</span>
<input type='hidden' name='__dmfRequestId' value='__client2036229066~~1'><input type='hidden' name='__dmfHiddenX' value='0'><input type='hidden' name='__dmfHiddenY' value='0'><input type='hidden' name='__dmfFormclass' value='com.documentum.web.form.Form'><input type='hidden' name='__dmfNlsclass' value='com.documentum.web.form.FormProcessorNlsProp'><input type='hidden' name='__dmfInitDocbase' value=''><input type='hidden' name='__dmfInitDocbaseUser' value=''><input type='hidden' name='__dmfInitDocbasePassword' value=''><input type='hidden' name='__dmfInitDocbaseDomain' value=''><input type='hidden' name='__dmfInitLocale' value=''><input type='hidden' name='__dmfSerialNumber' value='1'><input type='hidden' name='__dmfClientId' value=''></form>
<script type="text/javascript">
function setBrowserWindowId() {var element = document.forms["Form_0"].__dmfClientId;element.value=getBrowserId();}setBrowserWindowId();</script>
<script>getTopLevelWnd().document.g_accessibility=false;
</script><script type="text/javascript">
function Form_0_initForm(){
setServerForm('Form_0','__dmfHiddenX','__dmfHiddenY');
if (typeof setScrollPosition != 'undefined') setScrollPosition(0, 0);
if (typeof endModal != 'undefined') endModal();
registerKeyboardEvents(window);
initializeKeysLookup();
loadHotKeysRegistryToTopLevel();

if (typeof(window.setOnActionMultiselectWindowUnloadHandler) != 'undefined' && window.setOnActionMultiselectWindowUnloadHandler != null){ setOnActionMultiselectWindowUnloadHandler(); }
g_bWindowInitialised=true;
createTestHook('/webtop');
}</script><script type='text/javascript'>document.onreadystatechange = onReadyStateHandler;function onReadyStateHandler() { try {if (document.readyState=='complete'){Form_0_initForm(); }}catch (exception){} } </script><script type="text/javascript">function Form_0_preSubmitForm(formId, controlId){

}</script>
</body>
</html>

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.