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
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 2 of 646    Print  
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.

  
Total Answers and Comments: 6 Last Update: November 16, 2007     Asked by: mail2Shankar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 12, 2006 09:42:55   #1  
venkateshwar Reddy        

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

1. Ans: first learn(i.e store objects in Object Repository)  the window and Tabs screen

ex: SwfWindow(WindowName).SwfTab(Tabname).select "Tab2"

2. Ans: QTP not recognizing the Tree View but by writing .vbs function we can expand the Tree View

Regards,

Venkateshwar Reddy


 
Is this answer useful? Yes | No
October 10, 2006 02:09:03   #2  
rachana        

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.


 


 
Is this answer useful? Yes | No
May 09, 2007 06:18:28   #3  
srinivas        

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

According to ur question my answer is like this..

In your application page 4 tabs are there...

for to select one tab we can write script ...

In windowbased app.........

window("window name").wintab("tab name").select

In Oracle App...

OracleApplication("Oracle Applications").OracleFormWindow("form name").oracleTabbedRegion("tab name").select

In Java...

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').select


 
Is this answer useful? Yes | No
July 18, 2007 01:34:12   #4  
sumeet        

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

Hi,

Your Window Contains 4 tabs, So it is Better U can differentiate those Tabs by  using Set To Property.


It is for First Tab

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').Set To Property("index",1")

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').click

similary for 2nd Tab


Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').Set To Property("index", "2")

Javawindow("window name").JavaInternalFrame("Frame name").JavaTab("Tab name').click

So It is Better U can Differentiate those Tabs.


 
Is this answer useful? Yes | No
July 18, 2007 01:47:04   #5  
sumeet        

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

For Java Based Application

Twsitics (+) Symbol does not recognize By QTP 8.2, But it  supported by QTP 9.0

Javawindow("window name").JavaInternalFrame("Frame name").JavaTable("Table Name").Javalink("Twistics Name").Expand 


For Web Based Application:

I want to know That Twistics(+) is recognized by Web based.

 
Is this answer useful? Yes | No
November 16, 2007 13:28:00   #6  
prashanth        

RE: In Quick Test Pro 8.21. While Recordin...
Use below code to get Window tab positions
Dim s
s= Dialog("System Properties").WinTab("SysTabControl32").GetItem(2)
Dialog("System Properties").WinTab("SysTabControl32").Select s

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape