write a script for get the following result:
username
password
frm the
string1="A=username"
string2="B=password"
Answers were Sorted based on User's Feedback
Answer / sandeep guttikonda
The Above Posted answer is the very correct one.
Here I would like to show one more option but, not as good
as above one ( Just to tell the other option)
String1 = "A=username"
String2 = "B=password"
We are having 3 good buildin functions in VBscript to work
upon the test messages.
1) Left()
2) Mid()
3) Right()
Here in this case we can use Right() Function to retrieve
the required text.
We can use this function to get a specified number of
characters from the right side of a string.
Syntax: Right(String,Length)
To get username:
Code:
Username = Right(String1,8)
Msgbox Username
As length of us username is 8 I am using 8 in the function.
To get Password:
Code:
Password = Right(String2,8)
Msgbox Password
As length of us Password is 8 I am using 8 in the function.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / litan
string1="A=username"
string2="B=password"
Username=Split(string1,"=")(1)
PAssword=Split(string2,"=")(1)
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / giriyappa badagar
string1="A=username"
string2="B=password"
UName=Split(string1,"=")
PWord=Split(string2,"=")
msgbox UName(1)
msgbox PWord(1)
Is This Answer Correct ? | 1 Yes | 0 No |
Why do we use text checkpoint as we can make use of the same in the standard check point?
How to save your test using quicktest professional (qtp)?
how we can do web browser using parametarisation in QTP ?
How can you identify the browser and its information using the qtp script?
there is 3 flash player buttons does QTP identify them or not else we have to do install anything related that software if we have to install what is that software and how we install it into QTP8.2 GIVE ME EXCAT ANSWER IF U KNOW.
i have to pass the testcases into userid anf password of gmail login page using functions you can take your own testcaseslike userdid should take only lowerletters it should not take special charactors and uppercase letters and password should take only numericvalues it should not take alphanumeric and alphabets
What is the difference between browser sync and page sync in QTP?
How to identify 2 versions of browsers based on regular expression
How can you quit from Action.
where u maintain qtp scripts in ur company
Plze let me know how you can validate in the QTP that printed documents is correctly printed or not ie how we can do the validation that all the records or text are printed successfully in the printed document as per the application format requuired.
What are table and db checkpoints?