0

I'm using TestNG, Selenium Grid and using the @dataprovider annotation to read my testcase values from an Excel sheet. I am testing two sites that offer the same products using the same field names etc., but just under different brand names.

Site A processes without any issues whereas site B seems to be aware that an automation script is been run on it and redirects to a contact screen preventing me from completing a test case. When I log on manually, I can proceed without any problem.

My question is, are there tools that can prevent the use of the data injection with the @dataprovider annotation, and, if so, is there any way around them?

Barett
  • 5,826
  • 6
  • 51
  • 55
  • 1
    Have you compared request headers sent when you test manually and with the automation? Some proxies/firewalls interpret absent information in request headers as bots. – Flavio Cysne Jun 04 '12 at 13:53
  • Thanks Flavio, No i haven't tried this...im pretty new to the whole world of automation...How do i go about compareing the request headers... – user1435197 Jun 04 '12 at 17:25
  • For manual test you can use Firebug (FF plugin), Developer Tools (Chrome), etc. For automated test, I believe, Selenium has a configuration to turn on debug log and save request headers. – Flavio Cysne Jun 05 '12 at 11:32

0 Answers0