createSnapshot

Creates a requirement document snapshot. A snapshot is a version of a requirement document captured at a specific point in time. A SOAP error envelope is returned if the operation fails.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.
documentID long Unique requirement document record ID.
snapshot CSnapshotInfo Snapshot fields and properties.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

CRequirementDocument reqDoc = ttsdk.getRequirementDocument(cookie, 0, "Requirement document name", false);

 

CSnapshotInfo snapInfo = new CSnapshotInfo();

 

snapInfo.label = "Snapshot label";

snapInfo.comment = "Snapshot comment";

 

ttsdk.createSnapshot(cookie, reqDoc.recordid, snapInfo);