Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. (QTP)Set values to method..in item(i)

(QTP)Set values to method..in item(i)

Scheduled Pinned Locked Moved Visual Basic
questiondesigntoolshelpannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tanuja123
    wrote on last edited by
    #1

    i have a problem in my scripts of QuickTestProfessional tool. i have an application with design surface.Controls are dragged and dropped above the panel.In the script i iterate thru each and every control placed on panel. How can i get the class type of Control? How will i set values to methods of the control? The script for that is as follows...In 2nd statement i have 4 params to be passed in update property .While execution, control name doesnt change with update property. set myControl=swfwindow("aaa* BT????????????").Swfobject("Panel1").Object.Controls.item(i) myControl.updateproperty "Name",null, "dhdugf","hdsf" set childern1= swfwindow("aaa* BT????????????").Swfobject("PropertyGrid").Object.item Dim nme1 Dim ichild For j= 0 to childern1.count-1 ichild=childern1.item(j).value ichild= "AAAAAAA" nme1 = childern1.item(j).name msgbox nme1 & " :" & childern1.item(j).value Next Any inputs???.....

    D 1 Reply Last reply
    0
    • T Tanuja123

      i have a problem in my scripts of QuickTestProfessional tool. i have an application with design surface.Controls are dragged and dropped above the panel.In the script i iterate thru each and every control placed on panel. How can i get the class type of Control? How will i set values to methods of the control? The script for that is as follows...In 2nd statement i have 4 params to be passed in update property .While execution, control name doesnt change with update property. set myControl=swfwindow("aaa* BT????????????").Swfobject("Panel1").Object.Controls.item(i) myControl.updateproperty "Name",null, "dhdugf","hdsf" set childern1= swfwindow("aaa* BT????????????").Swfobject("PropertyGrid").Object.item Dim nme1 Dim ichild For j= 0 to childern1.count-1 ichild=childern1.item(j).value ichild= "AAAAAAA" nme1 = childern1.item(j).name msgbox nme1 & " :" & childern1.item(j).value Next Any inputs???.....

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      I think you'd be better off asking HP about issues with QTP. I've never used it, and it's quite likely that anyone else who has used it will see your post. From your code sample, it looks like your asking about using the UpdateMethod property of some object, though I can't figure out what that object it. I do know it's not anything to do with VB6 or VB.NET. You're best source of information is going to be the manufacturer of the library(s) you're using.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups