The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP / Mercury TestDirector

Pages: 1
AJModerator
Moderator


Reged: 06/26/99
Posts: 1766
Loc: San Jose, CA
VAPI Test Template
      #102845 - 08/05/05 12:07 AM

Has anybody created a VAPI test template where you can use once you create a new VAPI test in TestDirector/QC ?

I'm trying to create a template for a Python VAPI script. Does anyone have an axample?

Thanks.


Post Extras: Print Post   Remind Me!   Notify Moderator  
AJModerator
Moderator


Reged: 06/26/99
Posts: 1766
Loc: San Jose, CA
Re: VAPI Test Template
      #102846 - 08/08/05 11:12 AM

Well... If anybody wants the answer. It's in a knowledgebase article:

Problem ID: 32235

--------------------------------------------------------------------------------
Product:
TestDirector 8.0
DB(s):
Not Relevant


Topics:
Using the Open Test Architecture - API
OS:
Any Windows Platform

Creation Date:
16 Jun 2004 Last Modified Date:
18 Jun 2004


--------------------------------------------------------------------------------

Problem Description: How to create a VBScript VAPI-XP template script

TestDirector does not provide a way to modify an existing VAPI-XP-TEST automated script template through the process of customizing a project. However, a new custom test type can be created to form a desired script template. When the new test type is selected from the list of available test types, the new test will be created in the form of the template.


--------------------------------------------------------------------------------

Solution: Creating a sample VBScript automated script template

Description:
This example demonstrates how to create a VBScript VAPI-XP template for a new test type.

Usage:
1. Copy the "TemplateTestType.exe" file into the Install folder under C:\Inetpub\TDBin and rename it to "TemplateTestType.xxx".

2. Add the lines:

[TemplateType]
CLSID={9853CD8D-49BB-463C-B57C-158207A590D3}

to the test_type.ini file under the same directory.

3 Add the lines:

[File_xx]
Register=Y
URLName=%URL%/Install/TemplateTestType.xxx
ShortName=TemplateTestType.exe
Description=Template Test Type
ProgID=TemplateTestType.TemplateTestTypeClass

to the setup_a.ini file under C:\Inetpub\TDBin. Change the xx in the line "[File_xx]" into the next file number.

4. To make the template test type available from the New Test drop-down list, log into the Customize module and add the new test type name.

Example:


Select Customize -> Customize Project Lists -> TestType.

Click on the "New Item" button.

Add TemplateType.
5. Log into the project and create a new "TemplateType" test. You will see that a new VBScript VAPI-XP test is created for you.

Note:
If you do not see the new test type,proceed to do the following steps:
1. Close all instances of Internet Explorer.
2. Navigate to C:\Programs Files\Common Files\Mercury Interactive\TD2000_80.
3. Locate the test_type.ini file and delete it.
This will make sure that the client loads the new test type when you login.

Code:
Please see the attached file.


Related Articles:
Problem ID 30380 - How to build a remote agent for TD 8.0 using VC++
Problem ID 30382 - How to build a remote agent for TestDirector 8.0 using Visual Basic

Attachment : CPT32236.zip


test type remote agent


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 0 anonymous users are browsing this forum.

Moderator:  AJ, jgottlieb, corklad, bpolitzer 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2384

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5