| || |
How would you test this?
Hi everyone, I was wondering if I could have your input on something as I'm a little bit stumped with an upcoming testing project.
My company are building a website particular to a specific client e.g. Starbucks. The website will contain several data feeds, each one displaying relevant information to the current location of the user. So for instance if the user accesses the page from Starbucks in London they should see location information about London such as the weather and news that relates to that specific location. If a user was in Glasgow Starbucks or Prague Starbucks they would see local weather and news reports. But worldwide there are thousands of Starbucks cafes so how on earth can I verify that the data shown is correct for each one?
First, are you sure you are required to test each Starbucks cafe site individually? It's quite possible that you need to test the mechanism that detects which Starbucks is to be displayed and to test the mechanism that determines which data set to present. After that, it's just data (presumably, thousands of rows of data).
Originally Posted by roadhawkcyclist
It's like a login page. You don't need to test that every one of the thousands of registered users can each log in. You need to test the login mechanism itself.
Second, consider that if there aren't too many local details to consider, automation could be somewhat comprehensive. Your scripts might input all the rows of Startbucks locations from your database, simulate coming from that locale, then look on the resulting web page to check if the appropriate location information appears. Scripts can do a lot of work in a short period of time - often in an unattended manner, perhaps overnight if need be.
If you really need to check each one individually, your script might visit each location's page, take a picture, and save it to disk. Then you can manually verify the correctness at your leisure (perhaps dividing up the picture verification with others). Hopefully, you won't need to do this many times.
Last edited by Joe Strazzere; 08-12-2015 at 12:32 PM.
Hmmm, on reflection no, I don't have to individually test EVERY Starbucks site but I do need to have confidence that the data is correct at each site.
I take your point about testing the mechanisms themselves. The data will mainly be from 2 API type plugins.
If I was to go down the automation route which tool might be best suited for this kind of purpose? Could an automated tool prove that the Miami Starbucks shows Miami weather and the same applies for thousands of cafes worldwide?
I mostly work with QTP/UFT. I have studied Selenium. Others I have looked into may work for this also.
Will you be using automation for testing a lot of portions of your system or is this a one time only project?
In case it is only one time only, you may be able to do this with a shareware tool that talks with APIs or write a Visual Basic program hooked into the API to do this. For the photo compare part that Joe mentioned you could have the images show up on the same page as the API result and see if they match.
If you will be doing a lot of automation you may want to try using a bunch of them and call in vendors or consulting firms that work with many.