Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run multiple localdata table from a action
#3
Not Solved
Hi shreekant,

Please find attached screenshot, this is a code for it please see it and let me know if it has some problem

Code:
Dim EditToSearch,EditValueToSet, NumberOfEdits,LinkToSearch,LinkValueToSet, NumberOfLink,lengthO,SurveyID,a
        
               'This is the value of the 'name' property for the WebEdit object we want to find.
               EditToSearch = "txtSurveyID"
             'Create a description object to help retrieve all WebEdit objects in a specific page.
              Set loginDesc = Description.Create()
                  loginDesc("micclass").Value = "WebEdit"
                  loginDesc("name").Value = "txtSurveyID"

             'Retrieve all WebEdit objects in this page
              Set EditCollection = Browser("Add Survey").Page("Add Survey").ChildObjects(loginDesc)
                  NumberOfEdits = EditCollection.Count
                             'Search for a specific Linkobject and set its value
                For i = 0 To NumberOfEdits - 1
                    If EditCollection(i).GetROProperty("name") = EditToSearch Then
                       EditCollection(i).Set Datatable("SurveyID", dtLocalSheet)
                       ' WriteResults "Enter UserID Succesfully","Corporate User Login","User Enter value 'SYSADMIN'"
                     End If
                Next
Browser("Add Survey").Page("Add Survey").WebButton("Next").Click

If Browser("Add Survey").Dialog("Microsoft Internet Explorer").Exist Then

SurveyID = Browser("Add Survey").Dialog("Microsoft Internet Explorer").Static("Survey ID must contain").Check (CheckPoint("SurveyIDCheckAlpha"))
.
.
..
.
.
Thanks
Mahesh


Attached Files Image(s)
           
Reply


Messages In This Thread
RE: How to run multiple localdata table from a action - by upadhyay40 - 12-07-2009, 07:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run multiple iterations only on a set of lines in script amit25007 0 2,445 05-17-2016, 10:48 AM
Last Post: amit25007
  Dynamically run QTP script on multiple servers arpan 8 7,049 06-21-2013, 06:34 PM
Last Post: arpan
  Run time Data table to QC sshukla12 1 3,649 04-02-2012, 02:45 PM
Last Post: sshukla12
  Difference between parameter tabs in Action Properties and Action Call Properties. vibhakhandelwal 0 4,038 11-16-2011, 01:34 PM
Last Post: vibhakhandelwal
  Dot Net Factory Button click to run action in QTP nutsndips 1 4,425 06-21-2011, 08:37 PM
Last Post: nutsndips

Forum Jump:


Users browsing this thread: 2 Guest(s)