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


Please Help Members By Posting Answers For Below Questions

what is output value in QTP and how it can be used in automation testing

1545


How many types of recording modes in the qtp?

689


What is output value? How many types of output values are there in qtp?

672


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1562


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?

634






what is the frame work in J-meter?

1698


How you can replace string in qtp?

657


What are test settings and global settings?

657


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

1592


How many types of recording facility are available in quicktest professional (qtp)?

696


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

3534


Explain types of descriptive programming?

694


I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?

679


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

788


How would you directly trigger javascript in a test?

1547