write a qtp script to see time in windows command prompt?
its urgent....
Answer Posted / shashikala
Dim s
set s=createobject("WSCript.Shell")
s.run "cmd /k date"
set s=nothing
Using The above code we can get the date in command prompt
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How the smart identification is used in real time?Please explain with an example
Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project
How the exception handling can be done using quicktest professional?
Without using gui map editor we can recognize the application in winrunner ?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
What is Unicode Compatibility?
What are the advantages of parameterization ?
what r the main attributes of test automation?
Can any body please tell me the steps of keyword driven framework of QTP.
How would you directly trigger javascript in a test?
What is the use of sendkeys and what are send keys
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
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
What are the main differences of qtp and win runner?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks