Will have to check when I have access to a committee.did you import the classes? E.g. cookie? Jmeter.log may have errors check that too On Dec 5, 2012 2:37 AM, "Andrey Botalov" <[email protected]> wrote:
> On Wed, Dec 5, 2012 at 12:11 AM, Deepak Shetty <[email protected]> wrote: > > > can be done in Beanshell or equivalent - get the cookie manager from the > > Sampler and add the cookie to it > > > > > > > http://jmeter.apache.org/api/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.html > > > > > > > > I have the following structure: > HTTP Cookie Manager > Thread Group > Beanshell Preprocessor > HTTP Request (with server name www.google.com) > View Results Tree > > Beanshell Preprocessor has script: > manager = sampler.getCookieManager(); > cookie = new Cookie("name","value","www.google.com","/",false,2000000000); > manager.add(cookie); > > When I execute it no cookies are shown in View Results Tree > > > > > > > On Tue, Dec 4, 2012 at 1:03 PM, Andrey Botalov <[email protected] > > >wrote: > > > > > Web application can set cookie via document.cookie. > > > > > > It seems that HTTP Cookie Manager doesn't support this through > > User-defined > > > Cookies as such cookies are common to whole thread group. > > > > > > How can I set such cookie? > > > > > >
