Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Parameterization
#1
Not Solved
Hi,

I have written the below code to do some hands-on for parameterization:

Code:
DataTable.ImportSheet "C:\Documents and Settings\a8vs9\Desktop\Vijayendra\Data_Transfer_QTP.xls", "Sheet1", "Global"

If DataTable.GlobalSheet.GetCurrentRow = 1 Then
    SystemUtil.Run "IEXPLORE.exe", "http://www.google.com"
End If
iValue = DataTable.Value("LN_NBR", dtGlobalSheet)
With Browser("title:=Google", "index:=0").Page("title:=Google", "index:=0")

    .WebEdit("name:=q").Set DataTable("LN_NBR")
    .WebEdit("name:=q").Submit
    
End with

If Browser("title:=" & iValue & " - Google Search", "index:=0").Exist(10) Then
    Reporter.ReportEvent micPass, "Iteration " & DataTable.GlobalSheet.GetCurrentRow, "This iteration " & DataTable.GlobalSheet.GetCurrentRow & " is ok."
'    Browser("title:=" & iValue & " - Google Search").Back
    Browser("title:=" & iValue & " - Google Search").Navigate "http://www.google.com"
End If

From the Settings, I have changed the option in the Run tab to "Run on all rows", but still this block of code gets executed only once.

There are 20 values getting imported from the external file. I thought QTP automatically takes up the next row value and runs all the iterations. Please help me.

Thanks,
Vijayendra.
Reply


Messages In This Thread
Parameterization - by vijayendra.shukla - 06-02-2010, 06:15 PM
RE: Parameterization - by chanda Hemke - 06-02-2010, 07:08 PM
RE: Parameterization - by vijayendra.shukla - 06-03-2010, 10:09 AM
RE: Parameterization - by vijayendra.shukla - 06-03-2010, 03:20 PM
RE: Parameterization - by vijayendra.shukla - 06-04-2010, 05:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Action Parameterization Issue Slothman 1 1,614 10-31-2020, 01:05 PM
Last Post: Ankur
  Business Components Parameterization YogeshCallappa 0 1,517 06-07-2017, 04:32 PM
Last Post: YogeshCallappa
  Parameterization Hanskanika 0 1,542 11-20-2015, 04:45 PM
Last Post: Hanskanika
  Flight reservation basic parameterization not working on qtp 11.5 srs246 0 3,577 01-08-2013, 10:14 AM
Last Post: srs246
  "QTP Parameterization" suresz449 1 14,387 08-19-2011, 02:22 PM
Last Post: sreeswetha

Forum Jump:


Users browsing this thread: 1 Guest(s)