12-02-2009, 04:55 AM
Hi all,
I am new to this forum. I have to automate a web application in which user id becomed of browsers title bar, So its changing on each different login. If i am loging in with a user id say "PC-UK' it changes browser window title to "[ProjectConnect] :[PC-UK]-Windows Internet Explorer:" where projectconnect is my application name.
so to catter this issue and make my script executable for different user IDs I used regular expressions. for browser object my scripts local object repository below is the list of of properties for which i used regular expression.
1-title::"projectConnect*Windows Internet Explorer"
2-opentitle::"projectConnect*"
3-name::projectCentre* ( here i didn't entered double course does it metter for QTP)
Now if I execute my login test script after changing properties in above manner for different objects , script can be executed of browsers with different title bars than as mentioned above i.e. "[ProjectConnect] :[PC-UK]-Windows Internet Explorer:" . But it degrades perfomance and its taking a lot of time as compared to version of script nothaving regular expressions.[/i]
please suggest is it normal or I am not using regular expressions properly.
second question is little silly but it is the way i lited RE for name property in 3rd point is it valid.
waiting for your welcome and advise you people can offer.
I am new to this forum. I have to automate a web application in which user id becomed of browsers title bar, So its changing on each different login. If i am loging in with a user id say "PC-UK' it changes browser window title to "[ProjectConnect] :[PC-UK]-Windows Internet Explorer:" where projectconnect is my application name.
so to catter this issue and make my script executable for different user IDs I used regular expressions. for browser object my scripts local object repository below is the list of of properties for which i used regular expression.
1-title::"projectConnect*Windows Internet Explorer"
2-opentitle::"projectConnect*"
3-name::projectCentre* ( here i didn't entered double course does it metter for QTP)
Now if I execute my login test script after changing properties in above manner for different objects , script can be executed of browsers with different title bars than as mentioned above i.e. "[ProjectConnect] :[PC-UK]-Windows Internet Explorer:" . But it degrades perfomance and its taking a lot of time as compared to version of script nothaving regular expressions.[/i]
please suggest is it normal or I am not using regular expressions properly.
second question is little silly but it is the way i lited RE for name property in 3rd point is it valid.
waiting for your welcome and advise you people can offer.