Automating UI test for a retail website

Asked by Souvik Dutta

Hi All,

I am new to Sikuli, however I have rich experience with respect to Automation Testing using QTP and Selenium. Currently I am working for a mobile retail website, and I am responsible to automate their functional and UI scenarios. I was able to manage functional test cases pretty well with Selenium + Page Object Model, however I am getting hard time to automate their UI requirements. I have just heard about Sikuli and got a basic info on the same, but I am not sure if it can fulfill my needs, hence requesting any senior member to shed some light on this.

Here is my requirement -
Functional testing team of the current project gets change request in a daily basis w.r.t certain changes in the website for certain location. Most of them are UI changes, for example various promotions,products,banners etc.

These changes are made for different pages in the site and in different location.So they receive various image files to validate the same in their respective location. Some time these promotions are within a container like Accordion or Two Column shout or it can be also found directly posted in the website home page.

Now my question is, do we have an option within Sikuli where we can compare such images for a certain location and identify if there is any mismatch. These promotions are not always just a picture, how ever it can be in a combination of text and picture.

Please let me know if I can provide more clarification regarding my requirement.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

-- check existence of an image
... is the basic kernel feature of Sikuli:
you have an image and ask Sikuli to find it on the screen or in a defined area of the screen (Sikuli: a region)

To find out about some basic possibilities I recommend to play around with the Sikuli IDE and have a look at the many examples at http://www.sikuli.org/ (the right place also to start with when you want to get the latex version of Sikuli IDE).

And Google helps with any combination of the word Sikuli and other items like Selenium, QTP, ...

--- basic usage
# filename of an image
img = "some-image.png" # filename of an image

# search the image on the screen and return a match
# (the region the image currently occupies on the screen)
# together with a score value (exact match = 1.0)
print find(img)

--- check existence of text
if the text is fixed, one can use a screenshot of the text and act like an image (see above)

If it is real text in a webpage, that might be variably formatted, then this is principally possible (Sikuli has a basic OCR feature), but usually for web pages Sikuli users combine Selenium (for the page structure and the textual contents) with Sikuli (to check the rendering, verify images and do some basic automation on the page GUI (especially with flash content)).

Revision history for this message
Souvik Dutta (souvikd-qtp) said :
#2

Thanks for the prompt response Raiman, i will certainly play with the tool and then will come to you for further clarification

Revision history for this message
RaiMan (raimund-hocke) said :
#3

always welcome

Can you help with this problem?

Provide an answer of your own, or ask Souvik Dutta for more information if necessary.

To post a message you must log in.