write a qtp script to see time in windows command prompt?
its urgent....
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / brahma
getdate():Using this function we can get Date& Time
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / shashikala
Hi
" cmd/K is one of the switches avaliable with the cmd.exe"
For Example:
/C Switch : This switch loads a session of ‘cmd.exe’ into
memory, executes the command specified after /C and
terminates the cmd session.
/K Switch : This creates a new command session and
executes the date command, the session is not terminated
after completion of the command.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / manjunath dasari
dim a
a=now
msgbox a
displays time & date
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / manu
hi all,
i m getting some problem in closing the cmd prompt using
winrunner.
I am invoking some java programes using winrunner that will
pen a cmd promp and execute the commands till that time i
want winrunner to wait, but its not recognizing the cmd window.
If anybody has any solutin pls let me knw.
Thanks
Manu
manu_bans2710@yahoo.com
Is This Answer Correct ? | 0 Yes | 0 No |
What are the ways you can synchronize?
What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...
What is Test Fusion Report in QTP?
In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed. The details should be displayed only in screen 3(NOTE:details should not display in screen 2).How can v do using QTP.
How will you enchance the script?
i am testing an online shopping application.I CLICK on a link "ADD TO CART" of that application a "new page" is open and then click on any object of that "new page". after that when i run this SCRIPT then on this "new page" QTP always shows error of "OBJECT NOT FOUND". How i solve this problem ?
write script for "dropdown button having how many words? for ex.SELECT CITY is dropdown name.. find out how many cities in that?
1>How to get the browser name by writing the VBScript. 2>How did you used the GetROProperty and GetTOproperty .give real time scenario. 2>Give and real time ex for the bug having "High Severity and low priority"on banking doamin web based application.
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
how to invoke the web application through script in qtp
In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click
Explain in brief about the quicktest professional automation object model?