GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  QTP

 Print  |  
Question:  In Quick Test Pro 8.2

1. While Recording/writing the Script i want to know the " Selecting Tab Position Action Script".
Eg: Window contains 4 tab positions i would like to select 2 tab position at that time how script will come. plz write the script and send me.

2. How can i generate and select Tree View in Programatically.

Eg: Mycomputer Contains all drives information like as below.
+My Computer
when i press + Symbol My Computer will Expand that format like
-- My Computer
Drive C
Drive D
At That scenario i will perform these action
a. Expand My Computer View by selecting + Icon
b. After expanding i will select Drive D
While doing above conditions how script will generate plz let you find ASAP and mail me back. Don't forget.




October 10, 2006 02:09:03 #2
 rachana   Member Since: Visitor    Total Comments: N/A 

RE: In Quick Test Pro 8.21. While Recordin...
 

hi

2) If you try to record the treeview in web application  QTP will record the nodes you have selected as -

e.g ApptixDemoASP >> Customer >> user

Browser("AdminCentre").Page("AdminCentre").Frame("frmTreeView").WebElement("ApptixDemoASP").FireEvent "onmouseover"

Browser("AdminCentre").Page("AdminCentre").Frame("frmTreeView").WebElement("ApptixDemoASP").Click

Browser("AdminCentre").Page("AdminCentre").Frame("frmTreeView").WebElement("Customer").FireEvent "onmouseover"

Browser("AdminCentre").Page("AdminCentre").Frame("frmTreeView").WebElement("Customer").Click

Browser("AdminCentre").Page("AdminCentre").Frame("frmTreeView").WebElement("User").Click

For this you need to cusomize web event recording configuration as set mouse over event on and HTML tag event >> treeview as enabled.

Same way enable the HTML tag event >>Tabstrip and start recording will work and you will have auto generated script for tabs.


 

     

 

Back To Question