PLF_PERF_05_Login-3.5.1v2
open /portal/default/
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp
echo ${timestamp} 1110. ++Goto intranet
clickAndWait link=Login to the ACME social intranet
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp1
echo ${timestamp1} 1110. --Goto intranet
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp2
echo ${timestamp2} 1120. ++Click to login
click //b[contains(text(),'Sign in')]
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp3
echo ${timestamp3} 1120. --Click to login
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp4
echo ${timestamp4} 1130. ++Type account to login
waitForElementPresent name=username
type name=username bench.user2
waitForElementPresent name=password
type name=password exo
clickAndWait id=UIPortalLoginFormAction
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp5
echo ${timestamp5} 1130. --Type account and login
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp6
echo ${timestamp6} 1200. ++Load home page
waitForText css=div.ContTit My Profile
waitForElementPresent css=div.ContTit
assertElementPresent css=div.ContTit
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp7
echo ${timestamp7} 1200. --Load home page
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp8
echo ${timestamp8} 1300. ++Logout from intranet
waitForElementPresent link=Logout
clickAndWait link=Logout
storeEval { var stamp,year,month,day,hours,mins,secs,result ;stamp = new Date(); year=stamp.getYear()+1900;  month = stamp.getMonth()+1;  day = stamp.getDate();   hours = stamp.getHours();  mins = stamp.getMinutes();  secs = stamp.getSeconds();if (month < 10){month="0"+month;} if (day < 10){day="0"+day;} if (hours < 10)  { hours="0"+hours;} if (mins < 10)  {  mins="0"+mins;}  if (secs < 10)  {secs="0"+secs; }  result = " " + year + month + day + "_" + hours + mins + secs; } timestamp9
echo ${timestamp9} 1300. --Logout from intranet