Skip to main content

 

 
Go Search
Home
Getting Started
Knowledge Base
Training
Discussions
Downloads
Platform SDK
  

 
 
VersionOne Community > Knowledge Base > FAQs > Q11420
 
Can I use the VersionOne Fitnesse or HP QTP Integrations with V1:Agile Team?

Yes, both integrations work with V1:Agile Team.  The integration instructions included in the zip file are correct; however you need to manually create the TestSuite asset.  

Here are some examples for creating a Test Suite:
 
Example 1: Using Windows PowerShell Script
# Modify these parameters for your instance
$url = "http://localhost/VersionOneTeam/"
$username = "user"
$password = "user"
$suiteName = "Default Test Suite"
$suiteReference = "Product.TestSuite"
 
# Do Not modify below this line
$apiClient = resolve-path "versionone.sdk.apiclient.dll"
$objectModel = resolve-path "versionone.sdk.objectmodel.dll"
[Reflection.Assembly]::LoadFrom($apiClient)
[Reflection.Assembly]::LoadFrom($objectModel)
$v1 = new-object VersionOne.SDK.ObjectModel.V1Instance( $url, $username, $password)
$v1.Validate()
$v1.Create.TestSuite($suiteName, $suiteReference)
 
Example 2: Using the VersionOne .NET SDK
// Modify these parameters for your instance
string url = "http://localhost/VersionOneTeam/";
string user = "user";
string password = "user";
string suiteName = "Default Test Suite";
string suiteReference = "Product.Suite";
 
// Do Not modify below this line
V1Instance server = new V1Instance(url, user, password);
server.Validate();
server.Create.TestSuite(suiteName, suiteReference);
 
Example 3: Using the VersionOne Java APIClient
// Modify these parameters for your instance
String url = "http://localhost/VersionOneTeam/";
String user = "user";
String password = "user";
String suiteName = "Default Test Suite";
String suiteReference = "Product.Suite";
 
// Do Not Modify below this line
V1APIConnector dataConnector = new V1APIConnector(url + "rest-1.v1/", user, password);
V1APIConnector metaConnector = new V1APIConnector(url + "meta.v1/");
_metaModel = new MetaModel(metaConnector);
_services = new Services(_metaModel, dataConnector);
IAssetType suiteAssetType = _metaModel.getAssetType("TestSuite");
IAttributeDefinition suiteAssetName = suiteAssetType.getAttributeDefinition("Name");
IAttributeDefinition suiteAssetReference = suiteAssetType.getAttributeDefinition("Reference");
Asset suiteAsset = _services.createNew(suiteAssetType, null);
suiteAsset.setAttributeValue(suiteAssetName, suiteName);
suiteAsset.setAttributeValue(suiteAssetReference, suiteReference); _services.save(suiteAsset);
 
Example 4: Using VersionOne Core API
To use the API directly you need to POST the following XML to http://{server}/{application}/rest-1.v1/Data/TestSuite
<Asset>
    <Attribute name="Name" act="set">Default Test Suite</Attribute>
    <Attribute name="Reference" act="set">Project.Suite</Attribute>
</Asset>  


last modified: 5/11/2008 8:49 PM    
 
   


 Related Links