Micro Focus QTP (UFT) Forums
Framework for multilingual website automation - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Framework for multilingual website automation (/Thread-Framework-for-multilingual-website-automation)



Framework for multilingual website automation - anilverma.070 - 09-08-2008

Hi All,

Do anybody has any idea about designing the automation framework for automating the testing of a multilingual website using QTP.

Any prior experience/ suggestions.


RE: Framework for multilingual website automation - kishoreinchennai - 09-10-2008

hi

How Different is a multilingual website from an ordinary website.the object must be still the same.could you please help me in explaining it.

Regards
Kishore


RE: Framework for multilingual website automation - anilverma.070 - 09-10-2008

Hi Kishore,

Thanks for your interests in the subject. The problem is that the site operates in more than 35 countries with approx 18 languages. The idea revolves around whether to consider each country's website as a distinct one, or do some generalization in order to achieve a better %age of usability.

I hope you got the point. Please revert in case you are having any confusion yet.

Anil K.


RE: Framework for multilingual website automation - Ankur - 09-10-2008

I second kishoreinchennai ...

anilverma.070: Are the objects(their unique properties etc) different for different languages?
Acc to my understanding, only the UI(language) will make a difference not the coding inside it. The diff made by the UI would anyhow be compared by the external data that you pass.


RE: Framework for multilingual website automation - anilverma.070 - 09-10-2008

Hi Ankur:

Most of the time, it is different. e.g. Login page of the site remains same for all the language (part from the translation), but post login, page is totally customized according to the country. More so, contents of the page are dynamic and are displayed based on the country.

Objects like edit box have got an internal ID which makes them unique, but then there are things like labels, images, links that totally depends on country and language.


RE: Framework for multilingual website automation - Ankur - 09-10-2008

ok to make things more clear...can you show us say properties of labels, link , images etc(When I say property, I mean the UNIQUE recorded properties that are used to identify the object at run time) for two languages?


RE: Framework for multilingual website automation - anilverma.070 - 09-11-2008

OK Ankur,

Lets take the example of a text field (User Name for login):

For US/ English one:
Name: ctl00$workarea$loginPageView$ctl00$login$ctl00$tbxHandle
html id: ctl00_workarea_loginPageView_ctl00_login_ctl00_tbxHandle

For Germany one:
Name: CPLandingPageView$loginControl$ctl00$txtHandle
html id: CPLandingPageView_loginControl_ctl00_txtHandle


RE: Framework for multilingual website automation - kishoreinchennai - 09-12-2008

Anil

is there a common key word in any property which will identify
the object uniquely.For example the keyword login is in the name for english and german and this keyword must not be in any other object In Simple words if i say *Login* it must return
the username in all the languages.

IF the objects have such naming convention it is possible to derive a common frame work for all the login screens using regular expression.

i assume that the functionaly of the web page is same in all the languages.if yes this approach might work

if there is no way to group the objects on some common identifying facter in all these websites then you got to go for 33 different scenarios.

regards