Does QTP support Java Script also. Which is one is
preferrable for QTP, VB script or Java script

Answer Posted / govardhan palla

Framework which we are going to use in our project is
Hybrid Driven Framework and the application is in Oracle
Apps HRMS technology. But here you should have to know that
the framework which we are going to use is depends on our
Project. Some projects are we suite for Keyword driven
framework and some of the projects are for Hybrid Driven
Framework (some times we can call it as Function Library
Framework). Keyword Driven is Very easy to use and
implement, but when our test script is under more
maintenance mode then the Keyword Driven FW is more
difficult for Automation Developer, since we don't have
full control on the test script, if more than one
Automation Developers are means we will get conficts like
which part of the script is going to modify. Hence to
reduce the complexicity and to get Test script fully under
our control we can use Hybrid Driven Framework but it is
very complex to understand and develop.

In your case what type of error you are getting while
executing your test?
1.first make sure that your test script is going to
identifing the objects (in the application). If it is not,
add repository and Script accordingly.
2.Store the Object rep. in your local Drive with shared
mode (if you are using QTP 9.0 or later version it will
automatically in shared mode)

3.take the script scrap and devide logical functions
according to your wish and store them in .vbs file (here
you can devide all functions in individual .vbs files or
you can combine all together in one .vbs file)
4. Prepare Test Data in internal or external files.
5.Create Driver Script according to your requirement in
mine Test.
5. Add above created functions with the help of File-
>Settings->Resources->add library file
and add the same functions in Add Function Library list
6.Associate Object Rep. to your test. or you can create
some functions like Add Object Rep.dynamically and Add
Excel sheets Dynamically to your Test

Like above you can prepare test environment.
Please get back to me if you've any doubts on the same.

Cheers,
Govardhan

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can delete excel file in qtp?

599


What is the difference in the global and action sheet in qtp?

569


How do you script a nested loop in QTP? I am showing a snipet of my code. Any suggestions to help me get this to work would be great appreciated! STEP A - Customer Number: No loop - ISBN: Loop STEP B - Customer Number: Loop - ISBN: Nested Loop Here is the code I am using now. I am using i for the loop and j for the nested loop in STEP B of my script. =========================================== 'CREATE AN ADDITIONAL CUSTOMER Dim myNum, RowNum, RowCnt2, val2, total, i DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" RowCnt2 = DataTable.GetRowCount i = 1 DataTable.SetCurrentRow(i) ' Set row to one Do while Not i > RowCnt2 i=i+1 DataTable.SetNextRow MsgBox Datatable.Value("Customer_Num") Msgbox i Msgbox RowCnt2 If Not i > RowCnt2 then val2=datatable.Value("Customer_Num","Global") OracleFormWindow("Sales Order").SelectMenu "File->New" OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").Enter val2 End If 'CREATE SECOND ISBN LIST DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" Dim j, RowCnt3, val3 RowCnt3 = DataTable.GetRowCount For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) ' datatable.getSheet("DataTable").setNextRow If Trim(DataTable("ISBN",dtGlobalSheet)) = "" Then j = j - 1 Exit For End If Next 'Define ISBN rows If RowCnt3 <> j Then RowCnt3 = j End If 'Loop through ISBN rows For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) val3 = Datatable.Value("ISBN","Global") msgbox j If j = 1 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").Enter val3 else If j < 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).Enter val3 else If RowCnt1 => 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").InvokeSoftkey "DOWN" OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").Enter val3 end if end if End If Next 'EXIT APP msgbox i loop Browser("Browser").Page("Oracle Applications 11i").Sync Browser("Browser").Close ========================================== It isn't working correctly in my nested loop in STEP B (for ISBN). Any ideas?? Thanks! SBsteve

6743


Explain about datafile/verification of date file when file is not available in local system?

2227


what is the difference between data driver & data driven and driver script?

2137






requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1477


Hi All, I have QTP installed on my machine but the application under test is on remote machine. I need to automate the scenarios which consist of automatically enter the remote machine through IP address ,record the application in remote machine and run it also when played. Can some one tell how to record the application in remote machine.

1560


how to disable the pop ups through QTP using a script

1727


Difference between copy to action and call to action?

592


What is keyword driven framework?

618


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

985


How does qtp identify objects in the application?

583


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2397


What are the Application Functions available in QTP?

1475


What are the methods of the TextStream object that are used for reading from a text file?

1687