Highlighted
Trusted Contributor.
Trusted Contributor.
2238 views

Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.180:1494. The

Dear All,

Protocol: Web HTTP/HTML

               Citrix_ICA

 

Accessing a web application thru citirix server and hence using multiple protocols as above. Though am gving appropriate credentials as required but still getting the following error

 Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.180:1494. The window does not exist.

 

 

0 Likes
8 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Hi,
Have you checked whether the navigation to next URL is happening after commenting the syn on window and providing credentials?
I understand you kept the sync on window for validation.I want to make sure if the next page is loading after providing the credentials. So please give wait time to evaluate the next screen first.

Regards,
Raghul
0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

hi Raghul Am unable to access the URL as well on providing valid credentials as well. I also gave wait times for the page to load but still the issue persists Can i apply text checkpoint and validate Please suggest Ta! Raghav
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Hi 

Could you please post the code snippet of the place where you get the issue in script?

Logically, post entering the creedential, you will be clicking on singn or OK button to proceed to the next page. If the click is not working, then the validation will not work like (Correlation will not work until we get proper response page).

Regards,

Raghul M

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Dear Raghul

I have already performed Correlation for all the dynamic values. Also find the script as below

 

Action()
{

    web_url("Nmrcl-CtxWeb", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=", 
        "Snapshot=t1.inf", 
        "Mode=HTML", 
        EXTRARES, 
        "Url=receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=custom/style.css", ENDITEM, 
        "Url=receiver/images/1x/folder_template_C13BB96DEBC9F30F.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=receiver/images/common/ReceiverFullScreenBackground_46E559C0E6B5A27B.jpg", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=receiver/images/1x/CitrixReceiver_WebScreen_CBE548FB8FEE049E.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=receiver/js/external/hammer.v2.0.2.min_5507D46265FF2372.js", ENDITEM, 
        "Url=receiver/js/external/velocity.min_51C6C258BB124409.js", ENDITEM, 
        "Url=receiver/js/external/slick.min_FEB62CC230E2BA2A.js", ENDITEM, 
        "Url=receiver/js/ctxs.core.min_1D6DC421BAD069AE.js", ENDITEM, 
        "Url=receiver/js/ctxs.webui.min_DE392E359134A54E.js", ENDITEM, 
        "Url=receiver/images/1x/actionSprite_531B7A6FF85CA98E.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=receiver/js/external/jquery.dotdotdot.min_E12BB49CEDE48AB1.js", ENDITEM, 
        "Url=custom/script.js", ENDITEM, 
        "Url=custom/strings.en.js", ENDITEM, 
        "Url=receiver/images/1x/viewSprite_B2F322BDCB824FAF.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=receiver/images/common/authspinner_B0BCD339560CA593.gif", ENDITEM, 
        "Url=Resources/Icon/L0NpdHJpeC9ObXJjbC1DdHgvcmVzb3VyY2VzL3YyL2NuaERaM0IzUjFodVIxWXZiMDFOT1ZwYVVFb3hTbVZrWjFOM1BRLS0vaW1hZ2U-?size=128", ENDITEM, 
        "Url=Resources/Icon/L0NpdHJpeC9ObXJjbC1DdHgvcmVzb3VyY2VzL3YyL1dFY3dPREZXZURaSGF6bFZXVWxhUzFkUlRtdGtRMFJIYkVodlBRLS0vaW1hZ2U-?size=128", ENDITEM, 
        LAST);

    web_add_auto_header("X-Citrix-IsUsingHTTPS", 
        "No");

    web_add_auto_header("X-Requested-With", 
        "XMLHttpRequest");

/*Correlation comment - Do not change!  Original value='4F25256D9FDD33C98B69ADDD9D047F32' Name ='CsrfToken' Type ='ResponseBased'*/
    web_reg_save_param_regexp(
        "ParamName=CsrfToken",
        "RegExp=CsrfToken=(.*?);",
        SEARCH_FILTERS,
        "Scope=Cookies",
        "IgnoreRedirections=No",
        LAST);

    web_custom_request("Configuration", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Home/Configuration", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=application/xml", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t2.inf", 
        "Mode=HTML", 
        "EncType=", 
        LAST);

    web_add_auto_header("Csrf-Token",
        "{CsrfToken}");

/*Correlation comment - Do not change!  Original value='CDT_h2Ztzp3W7BHUAhNBGxh8HQln8ZJrA0XKEcbgnirfbmjylTQoiMZo34V8A6x80odx' Name ='ticket' Type ='RecordReplay'*/
    web_reg_save_param_json(
        "ParamName=ticket",
        "QueryString=$.clientDetectionTicket",
        SEARCH_FILTERS,
        "Scope=Body",
        LAST);

    web_custom_request("GetDetectionTicket", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ClientAssistant/GetDetectionTicket", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t3.inf", 
        "Mode=HTML", 
        "EncType=", 
        LAST);

    web_submit_data("GetDetectionStatus",
        "Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ClientAssistant/GetDetectionStatus",
        "Method=POST",
        "RecContentType=application/json",
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/",
        "Snapshot=t4.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=ticket", "Value={ticket}", ENDITEM,
        LAST);

    web_add_cookie("CtxsUserPreferredClient=Native; DOMAIN=192.168.21.176");

    web_add_cookie("CtxsClientDetectionDone=true; DOMAIN=192.168.21.176");

    web_add_cookie("CtxsHasUpgradeBeenShown=true; DOMAIN=192.168.21.176");

    web_submit_data("List", 
        "Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/List", 
        "Method=POST", 
        "RecContentType=text/plain", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t5.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=format", "Value=json", ENDITEM, 
        "Name=resourceDetails", "Value=Default", ENDITEM, 
        LAST);

    web_custom_request("GetAuthMethods", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Authentication/GetAuthMethods", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=application/xml", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t6.inf", 
        "Mode=HTML", 
        "EncType=", 
        LAST);

    web_custom_request("Login", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ExplicitAuth/Login", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=application/vnd.citrix.authenticateresponse-1+xml", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t7.inf", 
        "Mode=HTML", 
        "EncType=", 
        EXTRARES, 
        "Url=../receiver/images/1x/CitrixStoreFront_auth_14B96BFF2B0A6FF8.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        LAST);

    lr_save_string(lr_decrypt("58f98f5a33f22cf51e4f7da6"), "PasswordParameter");

    lr_think_time(7);

    web_submit_data("LoginAttempt", 
        "Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/ExplicitAuth/LoginAttempt", 
        "Method=POST", 
        "RecContentType=application/xml", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t8.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=username", "Value=Ribuser", ENDITEM, 
        "Name=password", "Value=User@123", ENDITEM, 
        "Name=saveCredentials", "Value=false", ENDITEM, 
        "Name=loginBtn", "Value=Log On", ENDITEM, 
        "Name=StateContext", "Value=", ENDITEM, 
        LAST);

    web_add_cookie("CtxsPasswordChangeAllowed=true; DOMAIN=192.168.21.176");

    web_submit_data("List_2", 
        "Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/List", 
        "Method=POST", 
        "RecContentType=application/json", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t9.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=format", "Value=json", ENDITEM, 
        "Name=resourceDetails", "Value=Default", ENDITEM, 
        EXTRARES, 
        "Url=../receiver/images/1x/CitrixReceiverLogo_Home_5C24BCEC5A182425.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=../receiver/images/1x/ico_search_E84E3D63D821F80D.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=../receiver/images/1x/search_close_BC5A22358E58905F.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=../receiver/images/1x/img_favorites_empty_7FBE69CFC0FDDB2D.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        LAST);

    web_custom_request("GetUserName", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Authentication/GetUserName", 
        "Method=POST", 
        "Resource=0", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t10.inf", 
        "Mode=HTML", 
        "EncType=", 
        EXTRARES, 
        "Url=../receiver/images/1x/spinner_white_auth_button_53FD5A337A529DA7.gif", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        "Url=../receiver/images/1x/spinner_5CF0D1C8A76AAC8E.png", "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/receiver/css/ctxs.large-ui.min_77F67A01D0A24AF1.css", ENDITEM, 
        LAST);

    lr_think_time(7);

    web_submit_data("Q29udHJvbGxlci5OTVJDTC1UZXN0", 
        "Action=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/GetLaunchStatus/Q29udHJvbGxlci5OTVJDTC1UZXN0", 
        "Method=POST", 
        "RecContentType=application/json", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t11.inf", 
        "Mode=HTML", 
        ITEMDATA, 
        "Name=createFileFetchTicket", "Value=false", ENDITEM, 
        LAST);

    ctrx_nfuse_connect("http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/LaunchIca/Q29udHJvbGxlci5OTVJDTC1UZXN0.ica?CsrfToken={CsrfToken}&IsUsingHttps=No&launchId=1492694250974", CTRX_LAST);

    ctrx_wait_for_event("LOGON", CTRX_LAST);

    ctrx_sync_on_window("Windows sign-in", CREATE, 0, 0, 801, 601, "snapshot12", CTRX_LAST);

    ctrx_mouse_click(513, 109, LEFT_BUTTON, 0, "Windows sign-in=snapshot13", CTRX_LAST);

    ctrx_mouse_click(637, 168, LEFT_BUTTON, 0, "Windows sign-in=snapshot14", CTRX_LAST);

    lr_think_time(18);

    ctrx_mouse_click(449, 201, LEFT_BUTTON, 0, "Windows sign-in=snapshot15", CTRX_LAST);

    ctrx_type(" ", "", CTRX_LAST);

    lr_think_time(309);

    ctrx_type("  ", "", CTRX_LAST);

    web_add_cookie("CtxsDesktopAutoLaunchDone=no; DOMAIN=192.168.21.176");

    lr_think_time(220);

    web_custom_request("Logoff", 
        "URL=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Authentication/Logoff", 
        "Method=POST", 
        "Resource=0", 
        "RecContentType=text/plain", 
        "Referer=http://192.168.21.176/Citrix/Nmrcl-CtxWeb/", 
        "Snapshot=t12.inf", 
        "Mode=HTML", 
        "EncType=", 
        LAST);

    lr_think_time(77);

    ctrx_type(" ", "", CTRX_LAST);

    ctrx_logoff(CTRX_NORMAL_LOGOFF, CTRX_LAST);

    web_revert_auto_header("Csrf-Token");

    web_revert_auto_header("X-Citrix-IsUsingHTTPS");

    web_revert_auto_header("X-Requested-With");

    lr_think_time(21176);

    web_url("crl-set-delta-3680-4748572709401130465.crx.data", 
        "URL=http://www.gstatic.com/chrome/crlset/3681/crl-set-delta-3680-4748572709401130465.crx.data", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=", 
        "Snapshot=t13.inf", 
        "Mode=HTML", 
        LAST);

    return 0;

 

Thanks

Raghav

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Hi,

Please handle the below highlighted value in nfuse connect. I hope that your pages are loading without any issue and addded all the relevant headers before nfuse connect.

ctrx_nfuse_connect("http://192.168.21.176/Citrix/Nmrcl-CtxWeb/Resources/LaunchIca/Q29udHJvbGxlci5OTVJDTC1UZXN0.ica?CsrfToken={CsrfToken}&IsUsingHttps=No&launchId=1492694250974", CTRX_LAST);

1)Check whether the ICA file value is changing or not by recording one more time.(Q29udHJvbGxlci5OTVJDTC1UZXN0.ica)

2)Handle the Timestamp using web_save_timestamp_param(492694250974) function as Citrix is very sensitive and will reject yor old session timestamp.

Regards,

Raghul M

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Hi Raghul

 

As these are dynamic values this keeps changing on every recording. Please suggest me where should i use the following function, web_save_timestamp_param(492694250974) as i am getting the following error now, 

 

Action.c(197): Setting connection option "ICAFILE" to "C:\Users\hplr\Documents\VuGen\Scripts\Transaction8_2004\\nfuse_(null).ica"
Action.c(198): web_save_timestamp_param("web_save_timestamp_param") started [MsgId: MMSG-26355]
Action.c(198): Error: C interpreter run time error: Action.c (198): Error -- memory violation : Exception ACCESS_VIOLATION received.
Ending Vuser...

 

Thanks

Raghav

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Hi,
Place the below line above the nfuse connect.

web_save_timestamp_param("timestamp",LAST);

Replace the value starts with 14.... With {timestamp}

Regards,
Raghul
0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Error: ctrx_sync_on_window("Windows sign-in") failed. Server IP address = 192.168.21.1

Appreciate  your thoughts but still the error persists 

Please find the attachment as well

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.