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 are the challenges you faced during you entire life automation ?
How to find the path of folder in which the test is saved in qtp?
Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.
What is fragmentation and paging?
How you debug your script?
What is a Patch in QTP?
What are the views available in quicktest professional (qtp)?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
how to disable the pop ups through QTP using a script
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
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
Can any body please tell me the steps of keyword driven framework of QTP.
In Remote acess server how u run a test?
What are the different recording modes?