![]() |
|
|
||||||||
| Site Links |
| Consulting |
| Knowledge Base |
| Training |
| Forum |
| Articles |
| Resources |
| Products |
| Cool Tools |
| Contact |
| About Us |
| Go to Page... |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
|
Descriptive Programming
Can I use variables with Descriptive Programming that are "Strings" or Numeric? My code (which returns null for the Set TableObj VBA:
VBA tags courtesy of www.thecodenet.com
thx for any ideas? Thx for your help. Lorena
Last edited by xld : 08-13-2011 at 03:14 AM. Reason: Added VBA tags |
|
Local Time: 12:26 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#2 |
|
Distinguished Lord of VBAX
|
You need to explain what you mean by that first sentence.
____________________________________________ Nihil simul inventum est et perfectum Abusus non tollit usum Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen! James Thurber |
|
Local Time: 06:26 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#3 |
|
|
Descriptive programming is used when we want to perform an operation on an object that is not present in the object repository. There can be various valid reason to do so. We will discuss them later in this article.
How to write Descriptive Programming? There are two ways in which descriptive programming can be used 1. By giving the description in form of the string arguments. 2. By creating properties collection object for the description. When using programmatic descriptions from a specific point within a test object hierarchy, you must continue to use programmatic descriptions from that point onward within the same statement. If you specify a test object by its object repository name after other objects in the hierarchy have been described using programmatic descriptions, QuickTest cannot identify the object. For example, you can use Browser(Desc1).Page(Desc1).Link(desc3), since it uses programmatic descriptions throughout the entire test object hierarchy. You can also use Browser("Index").Page(Desc1).Link(desc3), since it uses programmatic descriptions from a certain point in the description (starting from the Page object description). However, you cannot use Browser(Desc1).Page(Desc1).Link("Example1"), since it uses programmatic descriptions for the Browser and Page objects but then attempts to use an object repository name for the Link test object (QuickTest tries to locate the Link object based on its name, but cannot locate it in the repository because the parent objects were specified using programmatic descriptions). |
|
Local Time: 09:26 PM
Local Date: 05-19-2013 Location:
|
|
|
|
#4 |
|
|
Is this VBA? It's just that I've never seen the synax or the objects before (limited experience) and didn't recoginize it
VBA:
VBA tags courtesy of www.thecodenet.com
Paul |
|
Local Time: 01:26 AM
Local Date: 05-20-2013 Location:
|
|
![]() |
| Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|


