<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xml:base="http://www.red-gate.com/MessageBoard/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Red Gate forums: ANTS Load script tester</title>
 <link>http://www.red-gate.com/MessageBoard/</link>
 <description>Product Support and Discussion</description>
 <language>en</language>
 <copyright>Copyright Red Gate Software Ltd</copyright>
 <managingEditor>internalsupport@red-gate.com</managingEditor>
 <webMaster>internalsupport@red-gate.com</webMaster>
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
 <ttl>60</ttl>
 <lastBuildDate>Wed, 22 May 2013 05:22:48 GMT</lastBuildDate>
 <pubDate>Wed, 22 May 2013 05:22:48 GMT</pubDate>
 <image>
  <url>http://www.red-gate.com/messageboard/templates/subRed/images/logo_phpBB.gif</url>
  <title>Red Gate forums: ANTS Load script tester</title>
  <link>http://www.red-gate.com/MessageBoard/</link>
 </image>
 <item>
  <title>Testing scripts with dynamic data</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=16626#16626</link>
  <description>Hi,
&lt;br /&gt;

&lt;br /&gt;
I noticed this with script tester -- if you parse any content from a webpage and use it in your test script, for instance if your web page returns something like a session ID in a hidden field and you want to post it back to the server, script tester will use stale data when you try to view the compiled script in IE.
&lt;br /&gt;

&lt;br /&gt;
For example, I test this forum using ANTS Load. PHPBB returns a session in a hidden field. I examine WebClient.HttpResponse.Content and pull the session ID from the GET request, so it can be posted to the server.
&lt;br /&gt;

&lt;br /&gt;
When the script 'compiles', the session ID is valid. But when you then step through the script in IE, PHPBB creates a new session ID, but the script tester is using the original one.
&lt;br /&gt;

&lt;br /&gt;
The result, in my case, is that my test script doesn't post new topics, for example, because the session ID is invalid, and PHPBB continually redirects me to the login page.
&lt;br /&gt;

&lt;br /&gt;
In ANTS Load, however, the script runs great and posts new topics. 
&lt;br /&gt;

&lt;br /&gt;
Maybe I can find a workaround for this in the future! &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4654</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Sat, 07 Apr 2007 10:18:42 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=16626#16626</guid>
 </item>
 <item>
  <title>RE: Use of Modules</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=16175#16175</link>
  <description>Hi Tom,
&lt;br /&gt;

&lt;br /&gt;
I believe I've done it! Can you please download script tester again and see if it works for you?
&lt;br /&gt;

&lt;br /&gt;
I've found an array in the ANTS Load project object that lists the ANTS Load scripts, so I can compare all of the VSA scripts in your development environment to that list. Anything that doesn't match must be a module or a class, so I compile the selected test scripts along with the modules. This will mean that if you have test scripts that don't actually use the modules, they will also have the modules compiled in with them. It doesn't appear to hurt anything though.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4444</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Sun, 18 Mar 2007 00:15:00 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=16175#16175</guid>
 </item>
 <item>
  <title>RE: Use of Modules</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=15938#15938</link>
  <description>Hi Brian,
&lt;br /&gt;

&lt;br /&gt;
Thanks a lot ! In the meantime I am just copying my module into my main script item (I can actually have the Module and the class side by side in the single script file of course, so it works fine for testing purposes, but perhaps not if I want to assign virtual clients in different ratios cos the module would exist inside one of the virtual client scripts instead of outside all of them (haven't tried this last bit though)). I look forward to hearing how you get on in due course.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4444</comments>
  <dc:creator>TomChantler</dc:creator>
  <pubDate>Thu, 08 Mar 2007 07:57:25 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=15938#15938</guid>
 </item>
 <item>
  <title>RE: Use of Modules</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=15932#15932</link>
  <description>Hi Tom,
&lt;br /&gt;

&lt;br /&gt;
I'll see if I can have a look at that tonight. I don't believe that I compile anything but the main script item.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4444</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Wed, 07 Mar 2007 17:15:36 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=15932#15932</guid>
 </item>
 <item>
  <title>RE: Use of Modules</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=15926#15926</link>
  <description>No when I was editing my script in ANTS Load I created new modules by right-clicking on the project in the Porjects Explorer and choosing Add -&amp;gt; Module. SO the modules exist WITHIN the ANTS Load project itself!</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4444</comments>
  <dc:creator>TomChantler</dc:creator>
  <pubDate>Wed, 07 Mar 2007 14:02:03 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=15926#15926</guid>
 </item>
 <item>
  <title>RE: Use of Modules</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=15920#15920</link>
  <description>Do these modules exist in their own independent dll files? If so, tester should support it.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4444</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Wed, 07 Mar 2007 12:58:54 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=15920#15920</guid>
 </item>
 <item>
  <title>Use of Modules</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=15891#15891</link>
  <description>Hi,
&lt;br /&gt;

&lt;br /&gt;
I have a number of separate scripts which, whilst running simultaneously, all make reference to certain properties and methods contained within a module. When I try to compile a script for testing purposes it fails because the module members are not included in the compilation, as you would expect. 
&lt;br /&gt;

&lt;br /&gt;
Is there a way to include the module during the compilation process or do I have to manually edit each script to include the members from the module? i.e. can I compile the &amp;quot;project&amp;quot; and then test an individual script?</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=4444</comments>
  <dc:creator>TomChantler</dc:creator>
  <pubDate>Tue, 06 Mar 2007 12:32:47 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=15891#15891</guid>
 </item>
 <item>
  <title>RE: Script Compilation Errors</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=14382#14382</link>
  <description>This should be fixed now. Thanks for pointing it out.
&lt;br /&gt;

&lt;br /&gt;
The Headers object now acts like a WebHeaderCollection object, so you can get request headers by name from your ANTS Load script.
&lt;br /&gt;

&lt;br /&gt;
I've also added a few enhancements&lt;ul&gt;&lt;li&gt;Percentage complete
&lt;br /&gt;
&lt;li&gt;HTTP error report
&lt;br /&gt;
&lt;li&gt;UI things (window resizing, control updating)
&lt;br /&gt;
&lt;li&gt;Added Imports to the script so VB Constants such as vbCrLf work&lt;/ul&gt;</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3769</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Sat, 30 Dec 2006 21:04:31 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=14382#14382</guid>
 </item>
 <item>
  <title>RE: Script Compilation Errors</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=13716#13716</link>
  <description>Hi Tony,
&lt;br /&gt;

&lt;br /&gt;
I'll look into supporting this. The problem is that the HttpRequest and HttpResponse objects are 'fakes' in script tester. I don't think I supported the 'inherited' methods like ToString and Headers[&amp;quot;something&amp;quot;].</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3769</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Tue, 12 Dec 2006 06:44:09 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=13716#13716</guid>
 </item>
 <item>
  <title>Script Compilation Errors</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=13435#13435</link>
  <description>I get a script compilation error talking about a Null reference when I include the lines:
&lt;br /&gt;

&lt;br /&gt;
        logtofile(webclient.HttpRequest.Headers.ToString)
&lt;br /&gt;
        logtofile(webclient.HttpResponse.Headers.ToString)
&lt;br /&gt;

&lt;br /&gt;
Over to you.
&lt;br /&gt;

&lt;br /&gt;
Regards, Tony.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3769</comments>
  <dc:creator>tonymaynardsmith</dc:creator>
  <pubDate>Sat, 02 Dec 2006 16:27:05 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=13435#13435</guid>
 </item>
 <item>
  <title>RE: Error when clicking &amp;quot;Request Info&amp;quot;</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=13196#13196</link>
  <description>Never mind: I know what's happened.
&lt;br /&gt;

&lt;br /&gt;
I have added in some logic to display a messagebox stating that there is currently no request in memory, which is a shade nicer than a NullReferenceException!</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3519</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Sat, 18 Nov 2006 15:12:53 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=13196#13196</guid>
 </item>
 <item>
  <title>RE: Other result HttpResponse.Content</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=13187#13187</link>
  <description>Okay, Microsoft seemed to make an empty promise regarding IE7. So instead, I've done a workaround by trapping the web browser's onNavigateComplete2 event. If this fires and the URL is different than the one originally requested, the navigation is cancelled and the script tester moves forward to the next request. This should hopefully simulate ANTS Load a bit more closely.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3559</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Fri, 17 Nov 2006 18:34:19 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=13187#13187</guid>
 </item>
 <item>
  <title>RE: Error when clicking &amp;quot;Request Info&amp;quot;</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=13186#13186</link>
  <description>I know the GUI is not so great, but considering the price of the product...
&lt;br /&gt;

&lt;br /&gt;
Anyway, the Request Info button is meant to show you a MessageBox with the current request's URL and headers and post data, if any. I need to look at this again because large amounts of post data totally kill the application.
&lt;br /&gt;

&lt;br /&gt;
If you send the ANTS Project to my email address with a quick note, I'll look into it.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3519</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Fri, 17 Nov 2006 18:31:38 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=13186#13186</guid>
 </item>
 <item>
  <title>RE: Compilation error when tester encounters AddCredentials</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=12788#12788</link>
  <description>Hi,
&lt;br /&gt;

&lt;br /&gt;
I've now updated the ANTS Script tester so that there is a dummy method for addcredentials. The script test run should still work with Windows authentication as it should pass your current login credentials instead of whatever you have specified in the AddCredentials method.
&lt;br /&gt;

&lt;br /&gt;
I've chosen not to fully implement AddCredentails because it would involve risking a bit too much of the ANTS Load source code to disassembly by 'curious' users.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3518</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Thu, 02 Nov 2006 16:25:21 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=12788#12788</guid>
 </item>
 <item>
  <title>RE: Other result HttpResponse.Content</title>
  <link>http://www.red-gate.com/MessageBoard/viewtopic.php?p=12669#12669</link>
  <description>Thanks Peter!
&lt;br /&gt;

&lt;br /&gt;
There is a difference that would cause this. The script tester automatically follows redirections, whereas ANTS Load does not. The reason for this is that the Internet Explorer web browser component (shDocVw.dll) always follows redirects, and there is no way to disable the behavior.
&lt;br /&gt;

&lt;br /&gt;
When IE7 comes out, it will have an option to disable automatic redirection, so I'll definitely look at the issue again once IE7 is widely installed.</description>
  <category>ANTS Load script tester</category>
  <comments>http://www.red-gate.com/MessageBoard/posting.php?mode=reply&amp;t=3559</comments>
  <dc:creator>Brian Donahue</dc:creator>
  <pubDate>Sat, 28 Oct 2006 21:23:44 GMT</pubDate>
  <guid isPermaLink="true">http://www.red-gate.com/MessageBoard/viewtopic.php?p=12669#12669</guid>
 </item>
</channel>
</rss>
