Absent Member.
Absent Member.
743 views

Retrieving old versions of Test Cases

Jump to solution

Hi,

I am a newbie to SilkCentral, and I am getting an idea of how version control of Test Cases works.

Is it possible to:

  1. retrieve a specific version by URL?
  2. extract a specific version and save it on the local filesystem (using any format)?

Thanks.

0 Likes
3 Solutions

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Hi lumar,

In Silk Central it is possible to create a version of a test case and you can revert to this version later. This can be done in the history tab with button "Create Version" and the icons "View Version", "Revert Version" and "Delete Version". See documentation on this:

http://documentation.microfocus.com/help/topic/com.microfocus.sctm.doc/SCTM-6CD7DE49-VERSIONS-CON.html?cp=9_0_2_3_2_6

 

For automated tests you can store your test scripts in an external version control system (VCS), like SVN or GIT, and then you use it for execution. Which version control system you want to use can be defined in the test container:

http://documentation.microfocus.com/help/topic/com.microfocus.sctm.doc/SCTM-5AEE9AC7-ADDINGTESTCONTAINERS-TSK.html?cp=9_0_2_3_1_0_0

 

On execution start the execution server gets the latest version of your test script from the VCS.

 

Regarding your questions: you can revert a test to a specific version via UI, but you cannot download a specific version.

Are your questions regarding manual tests or automated tests? What is your use case? Do you want to archive the exported test, or do you want to work with this exported version?

 

Regards,

Hubert

View solution in original post

0 Likes
Absent Member.
Absent Member.
Hi lumar,

I am not sure if i correctly understand your question, but you can view details of a version directly in Silk Central via browser.
For instance, to view the details of a version of a manual test:
1) Click Tests > Details View in the main menu.
2) Select the manual test in the Tests tree.
3) Click the History tab.
4a) Either right-click on the version of which you want to see the details and click "View version <ID>". OR
4b) Click on the "View version <ID>" action (the magnifying glass icon in the history tab of the version you want so see).
5) The View Version dialog box opens.

If you want to compare two versions, just select the versions you want to compare in the history tab, right-click on one of the selected versions and click "Compare Versions <ID1> and <ID2>".

Please be aware that versions are not created automatically; You can manually create versions of test or shared objects, or revert to previous versions. Only if you create a new test or a shared object, then an initial version is created by default.

Regards
Michael

View solution in original post

0 Likes
Absent Member.
Absent Member.
Hi lumar,

Yes, modifying a test does not automatically create a (new) version.
So versions are not created automatically in Silk Central, except the initial version. When you create a new e.g. manual test, then an initial version with version number 1 is created.

When you make changes later to this test, then the changes are tracked on the history tab.
To create a revision of a test in a certain state, you have to manually create a version, for instance, as described in Silk Central help topic "Creating a Version".

Regards
Michael

View solution in original post

0 Likes
6 Replies
Micro Focus Expert
Micro Focus Expert

Hi lumar,

In Silk Central it is possible to create a version of a test case and you can revert to this version later. This can be done in the history tab with button "Create Version" and the icons "View Version", "Revert Version" and "Delete Version". See documentation on this:

http://documentation.microfocus.com/help/topic/com.microfocus.sctm.doc/SCTM-6CD7DE49-VERSIONS-CON.html?cp=9_0_2_3_2_6

 

For automated tests you can store your test scripts in an external version control system (VCS), like SVN or GIT, and then you use it for execution. Which version control system you want to use can be defined in the test container:

http://documentation.microfocus.com/help/topic/com.microfocus.sctm.doc/SCTM-5AEE9AC7-ADDINGTESTCONTAINERS-TSK.html?cp=9_0_2_3_1_0_0

 

On execution start the execution server gets the latest version of your test script from the VCS.

 

Regarding your questions: you can revert a test to a specific version via UI, but you cannot download a specific version.

Are your questions regarding manual tests or automated tests? What is your use case? Do you want to archive the exported test, or do you want to work with this exported version?

 

Regards,

Hubert

View solution in original post

0 Likes
Absent Member.
Absent Member.
Hi Hubert,
currently we have only manual tests in SilkCentral.
I wonder whether SilkCentral can act as a true version-control repository for test cases, in order to integrate it with our wider Software Lifecycle process.
Concerning your answer, it seems that the documentation you provided is for test libraries.
When I try to visualize Test Cases versions, the History tab shows me a "log" of the modifications done on the Test Case, but I cannot really view the previous versions.
I am accessing Silk via browser, should I use a desktop client (if there is one)?
0 Likes
Absent Member.
Absent Member.
Hi lumar,

I am not sure if i correctly understand your question, but you can view details of a version directly in Silk Central via browser.
For instance, to view the details of a version of a manual test:
1) Click Tests > Details View in the main menu.
2) Select the manual test in the Tests tree.
3) Click the History tab.
4a) Either right-click on the version of which you want to see the details and click "View version <ID>". OR
4b) Click on the "View version <ID>" action (the magnifying glass icon in the history tab of the version you want so see).
5) The View Version dialog box opens.

If you want to compare two versions, just select the versions you want to compare in the history tab, right-click on one of the selected versions and click "Compare Versions <ID1> and <ID2>".

Please be aware that versions are not created automatically; You can manually create versions of test or shared objects, or revert to previous versions. Only if you create a new test or a shared object, then an initial version is created by default.

Regards
Michael

View solution in original post

0 Likes
Absent Member.
Absent Member.
Michael,
I eventually found the version number, and I was able to view the selected version.
I just noticed that actually there only one version for each Test Case, even when the Test Case has been modified several times (i.e., I see several lines in the history tab, each one corresponding to a modification of the Test Case); the version number is displayed only in the last line, at the bottom of the history tab.
So, I suppose that it is possible to modify a Test Case without creating a new version of it, am I right?
0 Likes
Absent Member.
Absent Member.
Hi lumar,

Yes, modifying a test does not automatically create a (new) version.
So versions are not created automatically in Silk Central, except the initial version. When you create a new e.g. manual test, then an initial version with version number 1 is created.

When you make changes later to this test, then the changes are tracked on the history tab.
To create a revision of a test in a certain state, you have to manually create a version, for instance, as described in Silk Central help topic "Creating a Version".

Regards
Michael

View solution in original post

0 Likes
Absent Member.
Absent Member.
Thanks for the answer.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.