Micro Focus QTP (UFT) Forums
Not able to record the script - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Not able to record the script (/Thread-Not-able-to-record-the-script)

Pages: 1 2


Not able to record the script - jain29varun - 09-22-2010

Hi,

Can some one help. while recording the script through QTP the action which is recorded in the Expert View are different to what i have clicked.

For E.g If i have clicked on the 'My Account link' the action which is recored is 'Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("passwd").SetSecure "4c99930fed6d2cfcd2a5f2c84f758f37621908d3a4a4"'

Where the script should record that of 'My Account' link but it is not.


Pls help.

Varun Jain


RE: Not able to record the script - balaji4u - 09-23-2010

Hi Varun .

Are you recording the login action also in your scenario? or Your just clicking on the 'My Account link'?... It looks like your login action is recorded and the rest of your actions are not properly recorded. Can you please give the steps you are performing.

Regards,
Balaji


RE: Not able to record the script - jain29varun - 09-23-2010

Hi Balaji,

Thanks for your reply.

The steps i am following is.

1) Go to http://shopping.indiatimes.com
2) Click on the My Account tab
3) Login page open and then logged into the site.

But while clicking on the My Account link as said earlier following script is recorded. "Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("passwd").SetSecure "4c99930fed6d2cfcd2a5f2c84f758f37621908d3a4a4"


Thanks & Regards,
Varun Jain


RE: Not able to record the script - balaji4u - 09-23-2010

Hi Varun ,

Just try deleting your browser cookies and your browsing history and try recording the same steps and let me know the results.

Regards,
Balaji


RE: Not able to record the script - jain29varun - 09-23-2010

Hi Balaji,

Same has been done and tried again but same result is coming.

Regards,
Varun


RE: Not able to record the script - balaji4u - 09-23-2010

Hi Varun .

Its strange , even i reproduced it ... Can you use descriptive programming and try , simultaneously i will also try with DP and let u knw the results.

Regards,
Balaji


RE: Not able to record the script - jain29varun - 09-23-2010

Hi balaji,

It will be very helpful for me.

Thanks & Regards,
Varun Jain


RE: Not able to record the script - Vivek Mishra - 09-23-2010

Hi Varun,

Just check this,It is working fine for me.If you are getting any problem,please let me know.

Code:
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebElement("html tag:=A","class:=header_myaccount","Index:=0").Click
wait(3)
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("login").Click
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("login").Set "username"
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("passwd").Click
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("passwd").SetSecure "4c9b5ade2cf6c7834d11869fc78b2b70eb3805a4ef0c"
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").Image("sign-in").Click 40,12

Thanks
Vivek


RE: Not able to record the script - jain29varun - 09-24-2010

Hi Vivek

Thanks for your reply...

But in my case following script is recorded

Code:
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("passwd").SetSecure "4c9c33105e4f43c12f0f68e15171854c89c5ef6d3f76"
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("login").Click
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("login").Set "test.ok2"
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").WebEdit("passwd").SetSecure "4c9c331867f45e5f0e445da9ee94b4050e7366ae"
Browser("Indiatimes Shopping |").Page("Indiatimes Shopping |").Image("sign-in").Click 41,15
Browser("Indiatimes Shopping |").Page("Page").Sync
Browser("Indiatimes Shopping |").Close


Regards,
Varun


RE: Not able to record the script - jain29varun - 10-25-2010

Hi,

Pls help in recording the script of the above said query.

Regards
Varun Jain