Re: run two threads as a user

Adil qureshi <[email protected]> Thu, 11 Sep 2014 00:02:17 +0100
Newsgroups gmane.comp.java.grinder.user
Message-ID <CAH6ok+R8hrUsWrVO8E48i20LtfYKfG9qHwqMtVc3oUnj5muErg@mail.gmail.com>
Yes two or more threads will run concurrently. ..put some prints in script
to verify it... u might need to put in some logic as well to simulate exact
scenario...grinder just records your action...
On 10 Sep 2014 23:56, "qingyu wang" <[email protected]> wrote:

> Hi all,
> I would like to know is it possible to run two threads concurrently to
> simulate one user?
>  I have read the FAQ, which said that typically one threads is a user.
> However, the web server that I need to load test against uses http long
> polling. A real user would have a loop sending http polling request in the
> background (to receive notification or just keep this user alive)  while
> sending other requests or just being idle.
> I have read this post:
> Emulating AJAX polling request
> http://sourceforge.net/p/grinder/mailman/message/31636522/
>
> If a subthread is called after the main thread, will they run at the same
> time or the main thread would wait for the sub to finish?
> Essentially I need to include this asynchronous polling request in my test
> to simulate a user. Please advice me if there is better way to do it.
> Thank you for your help!
>
> Qingyu
>
>
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> grinder-use mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>
>

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use