I have been trying to mark certain test plans by named query. Has anyone worked on this? Somehow I am not getting this done. I have lots of separate tests in the test plan depending on the functionality, these have the test case and test data defined. The script file reads these test data and runs accordingly.
In order to use named queries you must define some attributes.
To define attributes:
open up any test plan you have
On the menubar click Testplan -> Define Attributes...
In the 'Define Attributes' dialog hit new and add an attribute
called "XML" (Leave 'normal' chosen in the 'New Attribute dialog'). Add some possible values for your attribute: 'yes' and 'no'.
(the 'Add' button stays disabled until you write something in the adjacent textfield)
OK the dialog.
What you have just done is define an attribute which will be stored in a file called testplan.ini. Open the General Options dialog (Options -> General ...).
In the Testplan section of this dialog you will see a path to your testplan.ini. Open up the file and check your attribute is there.
Now how to use it:
Lets supposing you wish to be able to mark any the tests in any testplan which relate to XML. First add the attribute to any area of the testplan you need to be marked
Now set up a query but make sure to give it a name.
Testplan -> Mark by Query....
Fill in query name, say 'MarkXML'.
Click 'Test Attributes' tab. Find your attribute 'XML' and click the right hand textfield and choose 'yes'.
Now hit the 'Mark' button.
Any test in your plan which you added the attribute 'XML' to with the value 'yes' will now be marked. So now you can go Run->Run Marked Tests.
If now you look at Testplan -> Mark by Named Query... you will see your query 'MarkXML' listed.
At any time you can use it.
Try it out, good luck and read the help files for further stuff!
[This message has been edited by johntest (edited 04-30-2003).]