i created script for login in QTP,i parametirized that
using global sheet,problem i am facing is first i want to
login with first values provided in excelsheet and want to
perform some operation,second time if call same action it
should login with second values in excelsheet

Answer Posted / aswinikumar.av

I am supposed to set the value in QTP under File-->
Settings to run on all rows. In your script, take the count
of all the rows in the Excel Sheet and then put in a For
loop and run your action. This is to move the pointer in
Excel Sheet to the next row in the Datasheet to pick the
newer data for execution.

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the extension .hta?

857


How to Import data from a file (file is on the desktop) to the data table

1772


How to get the length of the string by making use of the string function?

831


Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it

2512


Which operator is used to concatenate the 2 values in the vbscript language?

800


Which loop is used in case of arrays in the vbscript language?

730


What is dictionary object in vbscript? Explain?

888


How are comments handled in the vbscript language?

753


Difference between dim,public and private variables in vb script?

760


Which operator can be used to check if two numbers are equal or not in vbscript?

905


What is event handling in vbscript?

832


How to declare an array in vbscript?

915


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

847


how to increasing the numbers in a given text box please write a vb script

1993


How can the spaces from the string be removed?

812