In Quick Test Pro 8.21. 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 Computerwhen i press + Symbol My Computer will Expand that format like-- My Computer Drive C Drive DAt That scenario i will perform these actiona. Expand My Computer View by selecting + Iconb. After expanding i will select Drive DWhile doing above conditions how script will generate plz let you find ASAP and mail me back. Don't forget.

Questions by mail2Shankar

Showing Answers 1 - 14 of 14 Answers

venkateshwar Reddy

  • Sep 12th, 2006
 

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

  Was this answer useful?  Yes

rachana

  • Oct 10th, 2006
 

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.


 

  Was this answer useful?  Yes

srinivas

  • May 9th, 2007
 

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

  Was this answer useful?  Yes

sumeet

  • Jul 18th, 2007
 

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.

  Was this answer useful?  Yes

sumeet

  • Jul 18th, 2007
 

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.

  Was this answer useful?  Yes

prashanth

  • Nov 16th, 2007
 

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

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions