views:

12

answers:

1

I'm creating some tests for an ad server, and I want to test the validity / correctness of the returned ads.

For this I would (from an assertion script) like to get the image link, and then retrieve the image and do some checks (width/height/format/does it exist, etc)

Has someone done this before?

I'm able to parse the link from the response, but am stuck on how to actually get the image.

A: 

Apparently it's tricky. Assertion on certain strings recieved, if the xml is valid, or if the response is under certain threshold is no problem. But anything beyond this you have to script with either groovy or javascript. Although powerful probably, it's not the scripting language I'm easy with.

So I thought I might as well create unit test project in .Net using Nunit, and script the tests myself. Works perfect.

Toad