how to add the shared repository file to the script file
while running the script manuall
Answer Posted / manjunathareddy
Set QtApp=CreateObject("QuickTest.Application")
If Not QtApp.Launched Then
QtApp.Launch
QtApp.Visible=True
End If
Set QtRepo=QtApp.Test.Actions(ActionName).ObjectRepositories
QtRepo.RemoveAll
QtRepo.Add "C:\Test.tsr",1
'Note:--Action Name is Depends on ur Script name or give
numbers like 1,2,3
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
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
There are 5 web pages.write a script to click the button on 4th web page.
How to Import data from a file (file is on the desktop) to the data table
How will you get the natural logarithm of the given number in vbscript?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
how to write validation function for date in vb script
what is event handling?
How will you check that a variable is an array in vbscript?
How to Enter Values on the Command promt using VB script
What is the difference between javascript and vbscript?
What is dictionary object in vbscript? Explain?
Mention how to create a cookie using vbscript?
What is the difference between a dictionary and an array?
What is the use of the date function in the vbscript language?