how to handle the textboxes where in it should take the sum
like ex:: while posting a question in this site it will for
what is the result of 6+3=__ where in we have to enter
manually 9 and click on submit... but how to handle these
cases in qtp.. can someone plz help me out wid dis...



how to handle the textboxes where in it should take the sum like ex:: while posting a question in ..

Answer / ashok kumar

...
Values = Trim(Browser("").Page("").WebElement("html
tag:=B").GetROProperty("intertext")) 'Remove extra space
numbers = Split( (Left (values,Len( values)-1)),"+") 'split
two numbers
Browser("").Page("").WebEdit("tqa").Set
CInt(Trim(numbers(0))) + CInt(Trim(numbers(1)))
...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How do you do batch testing in wr and is it possible to do in qtp, if so explain?

0 Answers  


wt is automation framework? give explonation?

1 Answers   Mindlance,


How many actions we can create with in a test?

7 Answers  


How you r using QTP in u r project

1 Answers   IBM, Lehman Brothers,


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

0 Answers  






What ate the Technologies supported by QTP?

0 Answers  


Explain the use of action split in qtp?

0 Answers  


Suppose there are 100 links in a web page and the number of links will be changing dynamically from time to time. I need code such that every time i had to click on the last link of the web page.

4 Answers   Virtusa,


If object is not recognized by qtp but the object is standard object what is your approach?

0 Answers  


Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance..

3 Answers   Sony,


Plz write the code, function will take the parameter as month number, i.e., numerical value, but it returns the last day of the month in string (weekday). example: input: function parameter: 3(march) output: thursday

1 Answers  


What is time parameter?

1 Answers  


Categories