On 4/14/05, dharshana vanderbona <[EMAIL PROTECTED]> wrote:
> Hi All,
> I'm having a test case as follows.
>
> I have created User Parameters consisting of two variables called
> username and password inside a thread group.
>
> I have configured the HTTPRequest to use those parameters to login in
> the script.
>
> I am using a BeanShell script to check if the login succeeded or
> failed. If the login failed, I need to capture the username and
> password that was used for the request.
>
> I tried using ${username} inside the postprocessing beanshell, but it
> is returning void. is there a way to access this user parameter from
> the post processing beanshell script?
Strictly speaking, there is no BeanShell Post-Processor - I assume you
mean the BeanShell Assertion.
Variables do work in BeanShell Assertion scripts, but not in BeanShell files.
However, they can be passed in to files (or indeed scripts) as
parameters - see docs.
S.
> Thanks,
> Dharshana
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]