Line is too long???

Forum for users of ANTS web server load testing tool

Moderator: Brian Donahue

Line is too long???

Postby AdamL » Wed Nov 15, 2006 9:28 pm

I have recorded about 15 Scripts the first error I recieve when running my project is that line x is too long. I find this very funny considering Ants Load was the program to generate the script. Is this something that I am really going to have to manually go though every single line that is too long and change.

There has to be a better way I cant believe that this issue was not taken into consideration during product creation ???

Please Help :?:
AdamL
 
Posts: 10
Joined: Tue Oct 24, 2006 1:56 pm

Postby Brian Donahue » Thu Nov 16, 2006 12:43 pm

Hi Adam,

This could be happening in the event that you had recorded a file upload. The scripting method for handling the multipart/form-data posts was done as a hotfix and hasn't been sufficiently tested. If you script a file upload and the file is a few MB, it is Base64 encoded and added to the script. This is not an ideal solution, as it should really add the file as a resource in the project and read it with a resource reader to prevent this. But development time allowed didn't permit us to implement this way.

What you can probably do is locate this line, hit RETURN on it, and append the next line:
"abcdef016782476BDjjshajsaasdkjs\\d..."
-becomes -
abcdef016782476BD" & _
"jjshajsaasdkjs\\d...
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby AdamL » Thu Nov 16, 2006 1:56 pm

Ok thank you this seems to work, I just wish that this issue was handled automatically by the program generating the scripts in this case Ants Load. But this solution seems to work fine.

Thanks Again,

AdamL
AdamL
 
Posts: 10
Joined: Tue Oct 24, 2006 1:56 pm

Postby AdamL » Fri Nov 17, 2006 3:31 pm

ANSWER:

This is the correct method sorry Brian the above does not work :roll:


"asdfasdfasdfasdfasdfasf"

becomes

"asdfasdfasdf" _
+ "asdfasdfasf"
AdamL
 
Posts: 10
Joined: Tue Oct 24, 2006 1:56 pm

Postby Brian Donahue » Fri Nov 17, 2006 4:22 pm

Hi Adam,

It should work either way in VB .NET. But maybe the continuation _ and then the ampersand on the next line works.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests