How can we use the "CreateObject("Wscript.Shell")" in QTP
and what is the definition and purpose of it?

Answer Posted / hemakumar.m

For perfoming keyboard operations "Wscript" is use full.

Eg:For Pressing "F5"

Set Object=CreateObject("Wscript.Shell")
Object.SendKeys "{F5}"

U can find this in qtp help.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

653


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

637


What is a data driven test in qtp?

591


What are the different types of recording modes in qtp? Which will be used when?

574


How does qtp recognize objects in aut?

594






When to use descriptive programming?

595


describe some problems that u had with automating testing tool?

1417


how to write xml output check point bu useing descriptive programing .means without useing output check point

1654


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

643


when a test case is written how u test using qtp

1655


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2354


how do u plan test automation?

1447


is it possible to add sheets to excel at runtime

3236


What are the ways you can synchronize?

587


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1715