After I finished the first step of a full replay with 1 user session, I have now parameterized the user. Unfortunately, the cookie handling pops up again as a challenge here. Could you give me some further advice/tutorial/training with this step:
In the Evaluate Javascript code step before the web application rerenders the UI, I have this now:
document.cookie = 'JSESSIONID=7D5B9DC81498CDF9991DBD2DFD9A85A3; path=/; domain=192.168.150.129' ;
document.cookie = 'JSESSIONID=7D5B9DC81498CDF9991DBD2DFD9A85A3; path=/; domain=192.168.150.129' ; document.cookie = 'iw_domain=WIN8KTS732; path=/; domain=192.168.150.129' ;
if (LR.getParam("GetUserName", "Administrator")) { document.cookie = 'iw_user=Administrator; path=/; domain=192.168.150.129' ; document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744e798d9e21f64719cb3836a94daebf891c2e8e18a7f0350bdf1cd93a76b008d90a44f961ea8a0f3eddba0f64c6c45302b9; path=/; domain=192.168.150.129' ; } else if (LR.getParam("GetUserName", "contributor")) { document.cookie = 'iw_user=contributor; path=/; domain=192.168.150.129' ; document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744ee287f540dd4e85ee124dfc4cbe8abb826235d91b6cf5ec66f535cd2a4a795beb7b0be062bcc07f9e1bbaa36278430838; path=/; domain=192.168.150.129' ; } else if (LR.getParam("GetUserName", "translator")) { document.cookie = 'iw_user=translator; path=/; domain=192.168.150.129' ; document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744ea9bb5bf04d1d53bb33fe212ce85e48f5511efb6b18305090834cdd6b30403f24c3418321512bdaf3; path=/; domain=192.168.150.129' ; } else if (LR.getParam("GetUserName", "validator")) { document.cookie = 'iw_user=validator; path=/; domain=192.168.150.129' ; document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744e5f355457bb4cc22360042dad56cec3f2c54ee98ae564f257fae4bea99c1562f582f04c1ee974321d; path=/; domain=192.168.150.129' ; } else if (LR.getParam("GetUserName", "publisher")) { document.cookie = 'iw_user=publisher; path=/; domain=192.168.150.129' ; document.cookie = 'IWAUTH=52616e646f6d49561e14f912701a744e6198f34689088d45f41799f9edb79d9b5ce8626d076f587be1164e241d286623a9ccebada8f7090f; path=/; domain=192.168.150.129' ; } //fallback to administrator if nothing else works else { }
When I replay, the administrator username seems to be parsed.
I did a search on the forums and in the truclient pdfs on how to put a if else block like this in place, and how to call the parameters, but I am sure I am doing something silly here still
Can you verify something obvious I am doing wrong ?