1) When you find that Runtime Objects are not accessible by the Oracle add-in-8.2
Oracle add-in 8.2 does not have access to Runtime Objects (check that by yourself by spying) , to access the run time object properties use Java add-in.
Here is how you can do that:
- Launch QTP with Oracle Add-in loaded.
- Record till the point where you need to get the runtime object property.
- Save test, restart QTP this time with only Java-addin enabled.
- Now QTP should record the objects as Java objects. use .object property to access the properties as you normally do with other add-ins.
- Once done, save and restart QTP again this time with Oracle add-in also.
- Hopefully your script should run fine.
2) If you find some unexpected behavior or run errors when using the Java add-in
Make sure that you install Java add-in always after installing Oracle add-in (or patches) .
3) How to determine if an Oracle window is active (the foreground window)?
Take help of point no 1) above but this time manually create runtime "isActive" method using the .Object syntax.
4) Does QuickTest Professional support Oracle Developer 2000?
Objects in Oracle Forms 6, developed on Oracle Developer 2000, are only recognized as WinObject even when the QuickTest Professional Oracle add-In is installed. There is no special support for Oracle Developer 2000
Oracle clients that are not Java-based are not supported by the QuickTest Professional Oracle add-in. Windows client forms, known as "Oracle Developer 2000," are not supported.
The QuickTest Professional Oracle add-in supports only Oracle's forms which are run as an applet.
The Oracle add-in version 8.2 supports recording and running tests on the following toolkits:
- Oracle Forms 6.0
- Oracle Applications 11.5.7, 11.5.9, 11.5.10
- Oracle JInitiator 1.1.8 - 1.1.8.24, 1.3.1 - 1.3.1.21
- Oracle Applications using the Sun Plug-in 1.4.1_01
5) Oracle Forms 9 application will not launch after QTP Oracle add-in 8.2 installed
Oracle Forms 9 is not supported by Oracle add-in 8.2.
Apply Patch QTPOracle82P6102
Contact Customer Support for Patch QTPOracle82P6102.
6) The Enabled property of Oracle test objects is missing
Apply Patch QTPORACLE82P6100
Contact Customer Support for patch QTPORACLE82P6100
7) QTP does not spy or record on subtabs in an Oracle application
The solution is to manually enter OracleTabbedRegion.Select for the subtab.
From the Oracle add-in readme:
"The hierarchy of a tab inside a tab is not recorded correctly. This stops auto-tab selection from working on such hierarchies during a run session.Note:
Workaround: Add an OracleTabbedRegion.Select method to the appropriate tab before any replay step on an object inside a tab which is inside another tab."
The Oracle add-in version 8.2 can be used with QuickTest Professional 8.2, 9.0, 9.1,9.2 and 9.5.
Refer QTP Oracle Addin 'Read Me' for more such work-arounds.
Related: Points to take care with Siebel Addin
Reference: Source
If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.

23 comments:
Hi Ankur, I get a text file generated after I run a report in Oracle apps, I have to check whether the list of items and their details are displayed correctly. But the columns and the data in the text file are all identified as web elements with QTP.
We are unable to use the readline function coz if there is a lot of blank space between data in text file, it says end of file reached. So we are using readall function.
Sample data in text file
-----------------------------------
Subinventory: CYC-DGI Description: Recycle Defective Goods
Item Description Rev Locator UOM Quantity
------------------------------------------------------------------------------- --- ------------------------- --- ------------
ABC2501 ^ABC 2501 Ethernet/Dual Serial Router EA 1.0000
Subinventory: DGI Description: Defective Goods
Item Description Rev Locator UOM Quantity
------------------------------------------------------------------------------- --- ------------------------- --- ------------
ABC2501 ^ABC 2501 Ethernet/Dual Serial Router #E143 EA 2.0000
ABC2501 ^ABC 2501 Ethernet/Dual Serial Router -#E143 EA 2.0000
ABC2501 ^ABC 2501 Ethernet/Dual Serial Router AGING EA 1.0000
ABC2501 ^ABC 2501 Ethernet/Dual Serial Router DGI EA 10.0000
Subinventory: REC-DGI Description: Receiving Defective Goods
Item Description Rev Locator UOM Quantity
------------------------------------------------------------------------------- --- ------------------------- --- ------------
ABC2501 ^ABC 2501 Ethernet/Dual Serial Router EA 9.0000
-----------------------------------
Hello Ankur!!!
I have almost the same problem as Avin, but i need to get a number of a oracle report but seems to be impossible. Do you know how can i do it possible??!!
Best Regards,
Juan Cordova
Hi Avin,
I wasn't able to understand your question completely. I have some questions:
1)Are you comparing the output file with a text file?
2)Are you comparing the output report with database?
3)lastly you wrote you are using readall function...what problem are you facing using this function?
Hi Ankur ,
while working on an oracle application (Oracle Applications : 11.5.10.2) I am facing troubles when dealing with OracleTable.
1) I could only get the "visible rows" and not the complete number of rows in a table.( there are , say total 10 rows existing and visible rows are 7 )
2) If I try to set focus on an element of the table whose value is > visible rows, I'm getting an error :
Run Error
"The parameter is incorrect."
3) I am not able to get the scrollbar of the OracleTable detected at all.
Have you encountered any such scenario ? Is there any solution / patch for that ?
(As a workaround, I'm using JavaObject for that, so my script is a mix of oracle and Java statements both.)
Thanks In advance!
Hi Abhijit,
I have encountered the same problem while working on Siebel application.
I wrote a small piece of code in VB Script for this.
I "ll give you a hint to try on your own. First try to find the total no of rows(You can work on methods like .NextRowSet , .RecordCounter), then you can employ a loop from 1st to last row(ie the total no of rows.)
Regards,
Ankur
It would be better if you could explain the use of these methods as well. I tried to experiment* ith this, But I'm getting either of the following errors :
"Object doesn't support this property or method"
Or
"Invalid or unqualified reference"
*(.NextRowSet , .RecordCounter are not standard / default methods, they won't appear when you place a 'dot' after the statement :
OracleFormWindow("Window").OracleTabbedRegion("Region").OracleTable("Table")
Could you elaborate more ?
Hi,
Does anyone know where to download free oracle add in for qtp 9.2 version. Any help is truly appreciated.
Thank you
just born into qtp world
@Anon: Please follow the Download QTP link on the right column of this blog."Download Trial Version of QTP and Related Addins"
Hi Ankur,
I really appreaciate your efforts in answering the questions and your articles on various topics.
I need your help. My AUT is developed using Netbeans 5.51 RCP IDE, Swing 1.5, SWT. I have QTP9.1 and Java Add-in for 9.1 installed on my machine. When I record on my applicaiton, it seems to record well (identifying all the objects like JavaWindow, JavaTree etc).
JavaWindow("Main Window").JavaTree("TreeView$ExplorerTree").Click 51,9,"RIGHT"
JavaWindow("Main Window").JavaMenu("Log on").Select
The objects are in Object Repository. But when I run the script, it is giving a message like "object properties not mathing any object in the Application". When I try to spy using Object Spy, it is not identifying the JavaTree. It is recognizing the main window as the regular Window (not JavaWindow).
Please suggest me a solution.
Thank you so much in advance.
- Ravi
Hi Ankur,
Really u r doing good, and these r very useful to us. Can u provide me the Java add-ins for QTP9.0
Hi Ankur,
When i am entering some data into a text field inside "Oracle tabbed button"
Eg: Addresses---> Tabbed Button
==>First Name-->Text Field
It is failing to recognize object saying error as
" Cannot Find the "First Name" Objects parent "Addresses"(Class Oracle Tabbed Region)
verify that parent properties match an object currently displayed in your Application"
I will be very helpful if u give some solution.
@ Vasili: I have stopped taking questions on this blog. Please use Testing Tools forum for posting QTP questions.
After installing HP QTP Oracle Addin- 9.5. when we tried to Oracle application we got this error message "Jinitiator X.X Fatal Error - The Java Runtime Environment cannot be loaded", any one please help me
Hi,
We are trying to automate a java application with QTP 9.2 and Java Add-in 9.1. I think there are swing objects in the application. Can these types of application be automated with QTP. We are facing issues while recognizing objects. Is there some kind of setting required or additional add-ins needed?
Your help on this will be appreciated.
Hi,
I am using QTP-9.5, when i am trying record oracle-115.510.2 objects, am not able record File "menu bar" items. remaining objects identifying properly what i need to do ? do i need to set any profile options in Oracle?
Kiran
HI ankur,
How do i download and install a trial version on java addin for QTP trial version.
Thanks,
Muruli
Hi Ankur,
Need your help.
First of all I am very new to QTP.
I am testing Java Web application and have install Jave add-in also.
While writing test script, do I have to write in Javascript or any scripting is okay?
Thanks in advance
Divyanshi
Hi
We have oracle form based user interface and we want to automate our testing using QTP. We have QTP installed with path QTPORACLE82P6108.exe to support Oracle form10g. Application main page comprises of few text fields which have links to main page.
While recording, QTP recognizes the text fields but not their links. SO, we are not able to record properly. Can you suggest how to make QTP identify text fields with corresponding links?
Thanks & regards
Shivam
Hi,
I am trying to record a Java Applet via QTP9.2 (Java Addin 9.1), My applet is getting freeze.
Please help me to come out of this problem. Please suggest any settings to be requried.
Thanks in advance
hi ankur
Can i test an application using QTP which is using IBM DB2 database
plz answer at er_anumittal@rediffmail.com
thnks
Hi Ankur
We are having application developed using Java Swing (HP IUM Launchpad). Using QTP9.5 we are unable to identify the child objects in the window. It identifies only the Window not the child objects.
FYI – We have installed Java Addin
Can you tell is if we need to do any setting to have these objects identified ?
Regards
Ranjit
Hi Ankur,
I have been following your blog for over an year now and learnt a lot using the same. One request, it would be great if you can post an article like "Points to take care with .NET add-in" as you did for some other add-ins.
Regards,
Rahul
Hi Ankur,
I am new in QTP, facing problems while working with Oracle Table. Can you tell me how to use GetFieldItem property.
Post a Comment