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 to remove the associated function library?

0 Answers  


Hi, My Application in Microsoft Dynamic Navision, is it compitibale with QTP? if yes then let me know...and also let me know is there any other automation tool availabe to automate Microsoft Dynamic Navision. Thanks Sandip. +91-9714177088

1 Answers  


Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?

0 Answers  


On what basis we select test cases to automate?

0 Answers  


i am unable to select an item from combobox using Descriptive programming. can any one give me code for scheduling the ticket using Descriptive programming.

1 Answers  






How may types of defects identify application or your currently working application?pls give me answer..

0 Answers   Cap Gemini,


what is the diffrence between script and Language ? (Chandana)

6 Answers   Cognizant, Wipro,


How to capture the Check point Value into a variable?

2 Answers  


I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.

2 Answers  


Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks

0 Answers  


I am having trouble understanding #1 how to paramaterize a userid and password that I need to call in about 25 existing scripts. I need to know how to Create a Reuseable action for 25 existing scripts that will call the exact same userid and password? I need to know how to create a Reuseable action and then have it called by existing scripts being run in a batch.

2 Answers  


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

0 Answers  


Categories