0

I'm trying to write functional tests and we have a customer report page with google map which we use to display reported customers on in.

I read this post and I wondered whats the best way to write functional tests for google maps.

I am using Yii framework .

thanks guys

UPDATE: I also have polygons, indicating regions of these customers, how are polygons displayed and how can I write tests for them?

Community
  • 1
  • 1
Developerium
  • 7,155
  • 5
  • 36
  • 56

1 Answers1

0

In my opinion would be good to use Selenuim in this case. Obvoiusly there is lots of JavaScript involved and only good way how to really test it is to run tests in the webbrowser and replicate user activity.

For this you will need to install and setup Selenium server:

And the use PHPUnit Selenium extension

Zdenek Machek
  • 1,758
  • 1
  • 20
  • 30
  • I'm already using selenium ide for my functional tests.but I want to know an accurate way to test my map, since there is a lot of javascript going on and also elements on the map vary in position they were last time, and also I want to know if there is a pattern in which google adds Its objects in DOM ,so I can better make my tests. thanks – Developerium Sep 21 '13 at 05:54