Loading a script error

Forum for users of ANTS web server load testing tool

Loading a script error

Postby rivstyx » Thu Aug 10, 2006 4:14 pm

Hello everyone,
My company owns the enterprise edition and I have been able to successfully run tests with no problem but when I try to load a saved script I receive the following error...

System.Xml.XmlException: '', hexadecimal value 0x11, is an invalid character. Line 226, position 14.
at System.Xml.XmlScanner.ScanContent()
at System.Xml.XmlTextReader.ParseBeginTagExpandCharEntities()
at System.Xml.XmlTextReader.Read()
at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()
at System.Runtime.Serialization.Formatters.Soap.ObjectReader.Deserialize(HeaderHandler handler, ISerParser serParser)
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream, HeaderHandler handler)
at System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Deserialize(Stream serializationStream)
at RedGate.Ants.TestInformation.Project.LoadFromDisk(String fileName)
at RedGate.Ants.ANTS.Startup.LoadGenericFile(String fileName)
at RedGate.Ants.ANTS.frmMain.OpenFile()

Has anyone seen this before?
There is a difference between working hard and working smart.
Posts: 4
Joined: Thu Aug 10, 2006 4:07 pm

Postby Brian Donahue » Thu Aug 10, 2006 4:45 pm

Yes -- If the script recorder encounters a binary file upload (a multipart/form-data post), it decides whether or not to base64-encode the data so that the script doesn't fail validation because it contains binary data. It makes this determination by checking for characters > ASCII 127.

If it encounters a character like this, the whole part of the post data is Base64-encoded so that only 'printable' characters appear in the script.

Trouble is the logic doesn't check for characters < 32, which includes DEL and BEL and various control characters which also can't be printed.

Until we get this fixed, the best that you can do is edit the project (ANTS) file with notepad, look for nonpriintable characters, and replace them.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Postby rivstyx » Thu Aug 10, 2006 5:52 pm

There is a difference between working hard and working smart.
Posts: 4
Joined: Thu Aug 10, 2006 4:07 pm

Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests