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
Explain about the extension .hta?
How to Import data from a file (file is on the desktop) to the data table
How to get the length of the string by making use of the string function?
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
Which operator is used to concatenate the 2 values in the vbscript language?
Which loop is used in case of arrays in the vbscript language?
What is dictionary object in vbscript? Explain?
How are comments handled in the vbscript language?
Difference between dim,public and private variables in vb script?
Which operator can be used to check if two numbers are equal or not in vbscript?
What is event handling in vbscript?
How to declare an array in vbscript?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
how to increasing the numbers in a given text box please write a vb script
How can the spaces from the string be removed?