Am 04.03.20 um 07:33 schrieb 广东设计院谭伟基:
> Hello,Everyone!
>
>
> I find the/Regular Expression Extractor /can't Extract form the
> subrequest of the subrequest. it just can Extract form the subrequest
> of the main request.
> For example,   there's a scenario like this:
> 1. I input the address in the browser,and press the Enter.
> browser -----> (main Request1) -----> server
> browser <----- (response1)< -----server (response1 contains two
> embaded web page  stored in the server.)
> browser -----> (sub-Request2) -----> server        (browser sent the
> sub-response2 & sub-response3 Automatically Parallelly)
> browser -----> (sub-Request3) -----> server
> browser <----- (sub-response2)< -----server
> browser <----- (sub-response3)< -----server (sub-response3 contains
> two embaded web page  stored in the server.)
> browser -----> (sub-sub-Request4) -----> server  (browser sent the
> sub-sub-Request4 & sub-sub-Request5 Automatically Parallelly)
> browser -----> (sub-sub-Request5) -----> server
> browser <----- (sub-sub-response4)< -----server (sub-sub-response4
> contains a user session)
> browser <----- (sub-sub-response5)< -----server
>
> 2.I use /HTTP(S) Test Script Recorder/ to record The whole process
> above, then
>     a. I set /"Retrieve All Embedded Resources from HTML Files" /&
> /"Use concurrent pool/" in the main Request1 to be true,and disable
> all the  subrequest ,so the sub-request will be sent Automatically
> *Parallelly*
>     b.I put a /Regular Expression Extractor/ into main Request1 to get
> the user session, and set "/Apply to:/"Attribute to be /Main sample
> and sub-samples/,but *user session can't be Extracted.*
>     c.if I disable /"Retrieve All Embedded Resources from HTML Files"
> /& /"Use concurrent pool"/ in the main Request1 ,and enable all the 
> subrequest,move the /Regular Expression Extractor/ into sub-Request3,
> *user session can be Extracted*.but the sub-request will be sent*in
> sequence.*


Where is your session attribute embedded? I tried to extract a header
element -- as I assume that is where the session would be -- and could
get the value with "Apply to:" set to "Main sample and sub-samples" and
"Field to check" set to "Response Headers".

You might even get the session header from the HeaderManager, which
might be easier than deciding which of the headers is the correct one to
chose from.

Felix

>
> So,What can I do to satify two demands below?
> 1. the sub-request will be sent Parallelly
> 2.user session can be Extracted
>
> Thanks!
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to