Help
Hi, i am attaching a script file with this mail as i
want to simulate different users on the same
application. Please guide me to how would i change
this recorded script to have different usernames.
__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com
#
# The Grinder version 3.0-beta26
#
# Script recorded by the TCPProxy at Jul 2, 2005 4:48:01 PM
#
from httpscript_tests import *
from net.grinder.script.Grinder import grinder
class TestRunner:
def __call__(self):
tests[0].GET('http://www.rediff.com:80/')
grinder.sleep(125)
tests[1].GET('http://in.rediff.com:80/uim/ads/ind-home-Middle.htm')
grinder.sleep(469)
tests[2].GET('http://in.rediff.com:80/index.html')
tests[3].GET('http://in.rediff.com:80/uim/ads/ind-home-Bottom2.htm')
grinder.sleep(78)
tests[4].GET('http://in.rediff.com:80/uim/ads/ind-home-Bottom3.htm')
tests[5].GET('http://im.rediff.com:80/uim/matri/nocaching/1513503N.gif')
grinder.sleep(172)
tests[6].GET('http://imadworks.rediff.com:80/AdWorks/ind-home-Bottom4.htm')
grinder.sleep(156)
tests[7].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediff.com/ind-home.htm/1666952312 <at> Bottom2',
( NVPair('g', '2'),
NVPair('a', '24'),
NVPair('c', '01'),
NVPair('s', '15'),
NVPair('cn', '099'),
NVPair('z', '560072'),
NVPair('p', '034'),
NVPair('e', '00'),
NVPair('d', '_04'),
NVPair('i', '12_'),
NVPair('REFERER', 'http://in.rediff.com/index.html'), ))
grinder.sleep(156)
tests[8].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediff.com/ind-home.htm/1623712441 <at> Bottom3',
( NVPair('g', '2'),
NVPair('a', '24'),
NVPair('c', '01'),
NVPair('s', '15'),
NVPair('cn', '099'),
NVPair('z', '560072'),
NVPair('p', '034'),
NVPair('e', '00'),
NVPair('d', '_04'),
NVPair('i', '12_'),
NVPair('REFERER', 'http://in.rediff.com/index.html'), ))
grinder.sleep(78)
tests[9].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediff.com/ind-home.htm/1136081594 <at> Middle',
( NVPair('g', '2'),
NVPair('a', '24'),
NVPair('c', '01'),
NVPair('s', '15'),
NVPair('cn', '099'),
NVPair('z', '560072'),
NVPair('p', '034'),
NVPair('e', '00'),
NVPair('d', '_04'),
NVPair('i', '12_'),
NVPair('REFERER', 'http://in.rediff.com/index.html'), ))
grinder.sleep(203)
tests[10].GET('http://imadworks.rediff.com:80/cgi-bin/AdWorks/impress.cgi/www.rediff.com/ind-home.htm/1050702167 <at> Bottom4',
( NVPair('OAS_query', 'null'), ))
grinder.sleep(422)
tests[11].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/ind-home.htm/1050702167 <at> Bottom4/6968_5970/6824/1',
( NVPair('OAS_QUERY', 'null'),
NVPair('REFERER', ''),
NVPair('R', '9843669677'),
NVPair('PARTNER', '0'), ))
grinder.sleep(437)
tests[12].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/ind-home.htm/1050702167 <at> Bottom4/8884_7758/8823/2',
( NVPair('OAS_QUERY', 'null'),
NVPair('REFERER', ''),
NVPair('R', '9843669677'),
NVPair('PARTNER', '0'), ))
grinder.sleep(484)
tests[13].GET('http://imads.rediff.com:80/RealMedia/ads/Creatives/Rediffbol05/dhtml_2people_bangalore_kolkatta03july.swf',
( NVPair('click',
'http://ads.rediff.com/RealMedia/ads/click_lx.ads/www.rediff.com/ind-home.htm/2062410377/Middle/Rediffbol05/dhtml_2people_bangalore_kolkatta03july.html/33643566633932663432383138626630?URL'), ))
grinder.sleep(18015)
tests[14].POST('http://mail.rediff.com:80/cgi-bin/login.cgi',
( NVPair('FormName', 'existing'),
NVPair('login', 'gagan_vvce'),
NVPair('passwd', 'gamin'),
NVPair('x', '0'),
NVPair('y', '0'), ))
grinder.sleep(125)
tests[15].GET('http://f2mail.rediff.com:80/bn/postlogin.cgi',
( NVPair('login', 'gagan_vvce'),
NVPair('session_id', '2K1KFKPDgdhxjJSK8Wrbv3mfhS10'),
NVPair('farm', '2'), ))
grinder.sleep(125)
tests[16].GET('http://f2mail.rediff.com:80/bn/folder.cgi',
( NVPair('formname', 'sh_folder'),
NVPair('folder', 'Inbox'),
NVPair('login', 'gagan_vvce'),
NVPair('session_id', '2K1KFKPDgdhxjJSK8Wrbv3mfhS10'),
NVPair('SrtFld', '2'),
NVPair('SrtOrd', '1'),
NVPair('MsgCnt', '0'),
NVPair('user_size', '1'), ))
grinder.sleep(516)
tests[17].GET('http://imadworks.rediff.com:80/AdWorks/inbox-Bottom4.htm')
grinder.sleep(594)
tests[18].GET('http://im.rediff.com:80/uim/content/inbox-left1.htm')
grinder.sleep(141)
tests[19].GET('http://f2mail.rediff.com:80/template/meta/inbox-Right.htm')
grinder.sleep(157)
tests[20].GET('http://imadworks.rediff.com:80/cgi-bin/AdWorks/impress.cgi/www.rediff.com/inbox.htm/1050702162 <at> Bottom4',
( NVPair('OAS_query', 'null'), ))
grinder.sleep(47)
tests[21].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediffmail.com/inbox.htm/1326080013 <at> Right',
( NVPair('g', '2'),
NVPair('a', '24'),
NVPair('c', '01'),
NVPair('s', '15'),
NVPair('cn', '099'),
NVPair('z', '560072'),
NVPair('p', '034'),
NVPair('e', '00'),
NVPair('d', '_04'),
NVPair('i', '12_'), ))
grinder.sleep(344)
tests[22].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702162 <at> Bottom4/8848_7722/8782/1',
( NVPair('OAS_QUERY', 'null'),
NVPair('REFERER', ''),
NVPair('R', '982352411'),
NVPair('PARTNER', '0'), ))
grinder.sleep(360)
tests[23].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702162 <at> Bottom4/8199_7117/8087/2',
( NVPair('OAS_QUERY', 'null'),
NVPair('REFERER', ''),
NVPair('R', '982352411'),
NVPair('PARTNER', '0'), ))
grinder.sleep(12219)
tests[24].POST('http://f2mail.rediff.com:80/bn/folder.cgi',
( NVPair('FormName', 'sh_folder'),
NVPair('folder', 'Inbox'),
NVPair('login', 'gagan_vvce'),
NVPair('session_id', '2K1KFKPDgdhxjJSK8Wrbv3mfhS10'),
NVPair('btn_name1', 'Move'),
NVPair('SrtFld', '2'),
NVPair('SrtOrd', '1'),
NVPair('MsgCnt', '0'),
NVPair('moveto_folder1', 'Trash'),
NVPair('SelMsg3', '1116573113.17407.webmail20.rediffmail.com.old'),
NVPair('total', '7'), ))
grinder.sleep(344)
tests[25].GET('http://f2mail.rediff.com:80/template/meta/inbox-Right.htm')
grinder.sleep(406)
tests[26].GET('http://imadworks.rediff.com:80/AdWorks/inbox-Bottom4.htm')
grinder.sleep(31)
tests[27].GET('http://im.rediff.com:80/uim/content/inbox-left1.htm')
grinder.sleep(187)
tests[28].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediffmail.com/inbox.htm/1793012232 <at> Right',
( NVPair('g', '2'),
NVPair('a', '24'),
NVPair('c', '01'),
NVPair('s', '15'),
NVPair('cn', '099'),
NVPair('z', '560072'),
NVPair('p', '034'),
NVPair('e', '00'),
NVPair('d', '_04'),
NVPair('i', '12_'), ))
grinder.sleep(187)
tests[29].GET('http://imadworks.rediff.com:80/cgi-bin/AdWorks/impress.cgi/www.rediff.com/inbox.htm/1050702168 <at> Bottom4',
( NVPair('OAS_query', 'null'), ))
grinder.sleep(344)
tests[30].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702168 <at> Bottom4/8889_7763/8828/1',
( NVPair('OAS_QUERY', 'null'),
NVPair('REFERER', ''),
NVPair('R', '9885691787'),
NVPair('PARTNER', '0'), ))
grinder.sleep(344)
tests[31].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702168 <at> Bottom4/8896_7770/8835/2',
( NVPair('OAS_QUERY', 'null'),
NVPair('REFERER', ''),
NVPair('R', '9870887599'),
NVPair('PARTNER', '0'), ))
#
# The Grinder version 3.0-beta26
#
# HTTP tests recorded by the TCPProxy at Jul 2, 2005 4:48:01 PM
#
from HTTPClient import NVPair
from net.grinder.plugin.http import HTTPRequest
from net.grinder.script import Test
tests = {}
headers0 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request0 = HTTPRequest(headers = headers0)
tests[0] = Test(0, 'GET ').wrap(request0)
headers1 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://in.rediff.com/index.html'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request1 = HTTPRequest(headers = headers1)
tests[1] = Test(1, 'GET ind-home-Middle.htm').wrap(request1)
request2 = HTTPRequest(headers = headers0)
tests[2] = Test(2, 'GET index.html').wrap(request2)
request3 = HTTPRequest(headers = headers1)
tests[3] = Test(3, 'GET ind-home-Bottom2.htm').wrap(request3)
request4 = HTTPRequest(headers = headers1)
tests[4] = Test(4, 'GET ind-home-Bottom3.htm').wrap(request4)
headers5 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://in.rediff.com/index.html'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request5 = HTTPRequest(headers = headers5)
tests[5] = Test(5, 'GET 1513503N.gif').wrap(request5)
headers6 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('If-Modified-Since', 'Fri, 14 Jan 2005 14:01:11 GMT'),
NVPair('Referer', 'http://in.rediff.com/index.html'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request6 = HTTPRequest(headers = headers6)
tests[6] = Test(6, 'GET ind-home-Bottom4.htm').wrap(request6)
headers7 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://in.rediff.com/uim/ads/ind-home-Bottom2.htm'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request7 = HTTPRequest(headers = headers7)
tests[7] = Test(7, 'GET 1666952312 <at> Bottom2').wrap(request7)
headers8 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://in.rediff.com/uim/ads/ind-home-Bottom3.htm'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request8 = HTTPRequest(headers = headers8)
tests[8] = Test(8, 'GET 1623712441 <at> Bottom3').wrap(request8)
headers9 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://in.rediff.com/uim/ads/ind-home-Middle.htm'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request9 = HTTPRequest(headers = headers9)
tests[9] = Test(9, 'GET 1136081594 <at> Middle').wrap(request9)
headers10 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://imadworks.rediff.com/AdWorks/ind-home-Bottom4.htm'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request10 = HTTPRequest(headers = headers10)
tests[10] = Test(10, 'GET 1050702167 <at> Bottom4').wrap(request10)
request11 = HTTPRequest(headers = headers10)
tests[11] = Test(11, 'GET 1').wrap(request11)
request12 = HTTPRequest(headers = headers10)
tests[12] = Test(12, 'GET 2').wrap(request12)
headers13 = ( NVPair('Accept', '*/*'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request13 = HTTPRequest(headers = headers13)
tests[13] = Test(13, 'GET dhtml_2people_bangalore_kolkatta03july.swf').wrap(request13)
headers14 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://in.rediff.com/index.html'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'),
NVPair('Content-Type', 'application/x-www-form-urlencoded'), )
request14 = HTTPRequest(headers = headers14)
tests[14] = Test(14, 'POST login.cgi').wrap(request14)
request15 = HTTPRequest(headers = headers1)
tests[15] = Test(15, 'GET postlogin.cgi').wrap(request15)
request16 = HTTPRequest(headers = headers1)
tests[16] = Test(16, 'GET folder.cgi').wrap(request16)
headers17 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('If-Modified-Since', 'Tue, 26 Apr 2005 06:36:22 GMT'),
NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request17 = HTTPRequest(headers = headers17)
tests[17] = Test(17, 'GET inbox-Bottom4.htm').wrap(request17)
headers18 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request18 = HTTPRequest(headers = headers18)
tests[18] = Test(18, 'GET inbox-left1.htm').wrap(request18)
headers19 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('If-Modified-Since', 'Sat, 23 Apr 2005 07:24:53 GMT'),
NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request19 = HTTPRequest(headers = headers19)
tests[19] = Test(19, 'GET inbox-Right.htm').wrap(request19)
headers20 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://imadworks.rediff.com/AdWorks/inbox-Bottom4.htm'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request20 = HTTPRequest(headers = headers20)
tests[20] = Test(20, 'GET 1050702162 <at> Bottom4').wrap(request20)
headers21 = ( NVPair('Accept', '*/*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://f2mail.rediff.com/template/meta/inbox-Right.htm'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request21 = HTTPRequest(headers = headers21)
tests[21] = Test(21, 'GET 1326080013 <at> Right').wrap(request21)
request22 = HTTPRequest(headers = headers20)
tests[22] = Test(22, 'GET 1').wrap(request22)
request23 = HTTPRequest(headers = headers20)
tests[23] = Test(23, 'GET 2').wrap(request23)
headers24 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'),
NVPair('Content-Type', 'application/x-www-form-urlencoded'), )
request24 = HTTPRequest(headers = headers24)
tests[24] = Test(24, 'POST folder.cgi').wrap(request24)
headers25 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('If-Modified-Since', 'Sat, 23 Apr 2005 07:24:53 GMT'),
NVPair('Referer', 'http://f2mail.rediff.com/bn/folder.cgi'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request25 = HTTPRequest(headers = headers25)
tests[25] = Test(25, 'GET inbox-Right.htm').wrap(request25)
headers26 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('If-Modified-Since', 'Tue, 26 Apr 2005 06:36:22 GMT'),
NVPair('Referer', 'http://f2mail.rediff.com/bn/folder.cgi'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request26 = HTTPRequest(headers = headers26)
tests[26] = Test(26, 'GET inbox-Bottom4.htm').wrap(request26)
headers27 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'),
NVPair('Accept-Language', 'en-us'),
NVPair('Referer', 'http://f2mail.rediff.com/bn/folder.cgi'),
NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request27 = HTTPRequest(headers = headers27)
tests[27] = Test(27, 'GET inbox-left1.htm').wrap(request27)
request28 = HTTPRequest(headers = headers21)
tests[28] = Test(28, 'GET 1793012232 <at> Right').wrap(request28)
request29 = HTTPRequest(headers = headers20)
tests[29] = Test(29, 'GET 1050702168 <at> Bottom4').wrap(request29)
request30 = HTTPRequest(headers = headers20)
tests[30] = Test(30, 'GET 1').wrap(request30)
request31 = HTTPRequest(headers = headers20)
tests[31] = Test(31, 'GET 2').wrap(request31)