The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Borland/Segue SilkPerformer

Pages: 1
jduerr
Member


Reged: 11/20/09
Posts: 38
WebPageAddUrl how to parameterize
      #714622 - 08/15/12 10:10 AM

In the BDL code below for a webpage I am having an issue where the WebPageAddUrl pieces need a jsessionid correlated but the first occurence where I can capture that value is in the WebPageUrl component. When I replay the script the webPageAddUrl pieces are called after the WebPageUrl component (despite the opposite in the BDL script). How do you deal with situations like this in Silk Performer since technically the WebPageAddurl pieces are called after the WebPageUrl but I cannot parameterize the jsession in them since these lines are above the main webPageUrl call. Hope that makes sense.

WebPageAddUrl("../images/sign_in_button_active.png;jsessionid=150886BD25C57E5843C50F84E1497CE8");
WebPageAddUrl("../images/sign_up_button_active.png;jsessionid=150886BD25C57E5843C50F84E1497CE8");
WebParseDataBoundEx(sSessionInfo1, STRING_COMPLETE, ToEncoding("jsessionid="), 1, ToEncoding("\""),
WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE, 1);

WebPageUrl("http://Mainurlpage.shtml", "WebSite.com");

--------------------
Thanks,
Jeff Duerr
Senior IS QA Developer
LR, QTP, QC Admin, Sitescope, SilkPerformer


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mirek_B
Member


Reged: 11/01/06
Posts: 319
Re: WebPageAddUrl how to parameterize [Re: jduerr]
      #714700 - 08/16/12 06:37 AM

Hi Jeff,
the solution here could be to use browser level calls instead of page level calls, so it will be

Code:
WebParseDataBoundEx(sSessionInfo1, STRING_COMPLETE, ToEncoding("jsessionid="), 1, ToEncoding("\""),
WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_CASE_SENSITIVE, 1);
WebPageUrl("http://Mainurlpage.shtml", "WebSite.com");
WebUrl("../images/sign_in_button_active.png;jsessionid="+sSessionInfo1);
WebUrl("../images/sign_up_button_active.png;jsessionid="+sSessionInfo1);


Ofcourse the calls for the images will not be calculated in the main page timer so you might want to create custom timer to measure it.

Also you can try to use Browser Driven LoadTesting


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 3 anonymous users are browsing this forum.

Moderator:  AJ, jamesso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2859

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5