write a script for get the following result:
username
password
frm the
string1="A=username"
string2="B=password"
Answer Posted / 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 |
Post New Answer View All Answers
what is output value in QTP and how it can be used in automation testing
How many types of recording modes in the qtp?
What is output value? How many types of output values are there in qtp?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
what is the frame work in J-meter?
How you can replace string in qtp?
What are test settings and global settings?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
How many types of recording facility are available in quicktest professional (qtp)?
any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in
Explain types of descriptive programming?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
How would you directly trigger javascript in a test?