Hi,
I need to accept user inputs for login at runtime.I know i
can use Inputbox but how to proceed further that i dont
know.
Thanks in advance
Answers were Sorted based on User's Feedback
Answer / bala
hai this bala,
i know the answer as per my knwoledge
try it once
script for flight reservation:-
n=inputbox("enter how many times you want give")
for i=0 to n
a=inputbox("enter user name")
dailog("Login").winedit("Username").set a
b=inputbox("enter password")
dialog("Login").winedit("password").set b
dailog("Login").winbutton("OK").Click
stmtms---------------
--------------------
-------------------------
Next
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sangee
user=inputbox("enter the user","login","sam")
browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").WebEdit("name:=userName").Set user
hint: sam is optional,u can enter the user name at the
runtime also.
Is This Answer Correct ? | 0 Yes | 1 No |
Can automation testing find ssame no. of bugs what we can find by manual testing?
am giving to one number u can set into that in date format.u can use any methods
Explain about tristate constants in vbscript?
Mention what if you do not specify anything when you call a procedure?
Which operator can be used to check if two numbers are equal or not in vbscript?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>
how to display all the links in one page using vb script in qtp.
1 Answers DST Global Solutions,
How to create a function in vbscript?
Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble
Explain the arrays in vb script?
how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me