AJAX TruClient - Issue in Multiple Iteration

Hi Team,

 

When I am trying to iterate "Action" part more than one time, application session is getting expired.

 

I have put login part of application in "Init" Section and logout part in "End" section.

 

After last step of action part, we are getting blank page in browser.

 

Please find the attached screenshot for reference.

 

Regards,

Deepak

 

  • I have now put this in the javascript which works:

     

    if (LR.getParam("GetUserName", "Administrator")) {  //window.alert("username is: " LR.getParam("GetUserName"));  document.cookie = 'JSESSIONID=167362CA3DCCB8898DE275FCE1DC4B24; path=/;  domain=192.168.150.129'  document.cookie = 'iw_user=Administrator; path=/;  domain=192.168.150.129'  document.cookie = 'iw_domain=WIN8KTS732; path=/;  domain=192.168.150.129'  document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744e798d9e21f64719cb3836a94daebf891c5e4c2e81704c70fa541e573c34d0f48ab7c46a157d45f51b30281a34b3a5dcb32610883742608ce4; path=/;  domain=192.168.150.129' } else if (LR.getParam("GetUserName", "contributor")) {  //window.alert("username is: " LR.getParam("GetUserName"));  document.cookie = 'JSESSIONID=167362CA3DCCB8898DE275FCE1DC4B24; path=/;  domain=192.168.150.129'  document.cookie = 'iw_user=contributor; path=/;  domain=192.168.150.129'  document.cookie = 'iw_domain=WIN8KTS732; path=/;  domain=192.168.150.129'  document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744ee287f540dd4e85ee124dfc4cbe8abb8219434127cf3ec0021f057867ea6973150f15047088c77d5d3d662599facfd7fd40c630a4a8b40091; path=/;  domain=192.168.150.129' } else if (LR.getParam("GetUserName", "translator")) {  //window.alert("username is: " LR.getParam("GetUserName"));  document.cookie = 'JSESSIONID=167362CA3DCCB8898DE275FCE1DC4B24; path=/;  domain=192.168.150.129'  document.cookie = 'iw_user=translator; path=/;  domain=192.168.150.129'  document.cookie = 'iw_domain=WIN8KTS732; path=/;  domain=192.168.150.129'  document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744ea9bb5bf04d1d53bb33fe212ce85e48f519af766107d01f60bc07db86572cfe169d9db85c89868505d02bdf1336be4afae7eb0bbdc3584ee5; path=/;  domain=192.168.150.129' } else if (LR.getParam("GetUserName", "validator")) {  //window.alert("username is: " LR.getParam("GetUserName"));  document.cookie = 'JSESSIONID=167362CA3DCCB8898DE275FCE1DC4B24; path=/;  domain=192.168.150.129'  document.cookie = 'iw_user=validator; path=/;  domain=192.168.150.129'  document.cookie = 'iw_domain=WIN8KTS732; path=/;  domain=192.168.150.129'  document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744e5f355457bb4cc22396b96b6b6a455cf84f75371d8a9dc096fa644e1c68b2d799d0da7be32774ef45b8483a22f211739be9085705f9e7a16f; path=/;  domain=192.168.150.129' } else if (LR.getParam("GetUserName", "publisher")) {  //window.alert("username is: " LR.getParam("GetUserName"));  document.cookie = 'JSESSIONID=167362CA3DCCB8898DE275FCE1DC4B24; path=/;  domain=192.168.150.129'  document.cookie = 'iw_user=publisher; path=/;  domain=192.168.150.129'  document.cookie = 'iw_domain=WIN8KTS732; path=/;  domain=192.168.150.129'  document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744e6198f34689088d45ae902d2640ce04db8337b3a60927b544f8b0e24be59f8ade45331884db591608503ef342d96d03e23836c014234d0c5c; path=/;  domain=192.168.150.129'

     } else {  window.alert("nothing to do"); }

    window.setTimeout(function(){}, 1000);

    //window.alert("IWAUTH is: " getCookie("IWAUTH"));

    function getCookie(cname) { var name = cname "="; var ca = document.cookie.split(';'); for(var i=0; i<ca.length; i )   {   var c = ca[i].trim();   if (c.indexOf(name)==0) return c.substring(name.length,c.length); } return ""; }

     

     


  •  wrote:

    Good to hear.


    Boa tarde Guy.

     

    Estou com um problema diferente e não encontreis posts aqui........

    Sou iniciante em LoadRunner, e não estou conseguindo aceder paginas que preciso através da gravação.......parece-me estar relacionado com o STS, tenho a seguinte mensagem de retorno " O pC não confia no certificado de segurança do Site.

    Código Erro: DLG_FLAGS_INVALID_CA

    As vezes para aqui e as vezes permite seguir em frente, mas quano vou em frente ele diz password inválida, mas estou usando a password correta.

    Os certificados estão ativos e com validade até 2023.

    Pode ajudar?  Notei que vc é ativo aqui e tem muita experiência.

    Obrigado.

    Antonio Moraes