link to a test case
link to a test case
I have a test project with many test cases. How I can set a link from test case 1 to test case 100 ? Is it possible?
best regards, cosmo
best regards, cosmo
Hello cosmo,
you must create a littel bit of new code:
put this in testlink_library.js
and then you can create a link in a testcase with this url:
javascript:testcase_Link(xx) and no protokoll.
xx is the testcase ID where you want to link.
And if you want to link to a testsuite, use the other funktion.
will this help you?
regards
Gunter
you must create a littel bit of new code:
Code: Select all
function testsuite_Link(id)
{
var pParams = tree_getPrintPreferences();
parent.workframe.location = fRoot+"lib/testcases/archiveData.php?edit=testsuite&id="+id+args+"&"+pParams;
}
function testcase_Link(id,v)
{
var pParams = tree_getPrintPreferences();
parent.workframe.location = fRoot+"lib/testcases/archiveData.php?version_id="+v+"&edit=testcase&id="+id+args;
}
and then you can create a link in a testcase with this url:
javascript:testcase_Link(xx) and no protokoll.
xx is the testcase ID where you want to link.
And if you want to link to a testsuite, use the other funktion.
will this help you?
regards
Gunter
@ cosmo
have you the same version? we are using 1.73
I'm not shure if this works on older version.
If you change anything on javascript, you have clean the browsercache and restart the browser. Sometimes you have to clean the smarty cache.
Or mabye the cache of your java engine.
Are your shure that your link ist correct? Linkt-Type: URL
Protokoll: other
url: javascript:testsuite_Link(35)
@Nogem
thank you for your note.
i have checkt this problem.
The function testcase_Link links always to the newest version .
have you the same version? we are using 1.73
I'm not shure if this works on older version.
If you change anything on javascript, you have clean the browsercache and restart the browser. Sometimes you have to clean the smarty cache.
Or mabye the cache of your java engine.
Are your shure that your link ist correct? Linkt-Type: URL
Protokoll: other
url: javascript:testsuite_Link(35)
@Nogem
thank you for your note.
i have checkt this problem.
The function testcase_Link links always to the newest version .
hello gunter,
yes, I´m sure. this is the code:
function testcase_Link(id)
{
var pParams = tree_getPrintPreferences();
parent.workframe.location = fRoot+"lib/testcases/archiveData.php?edit=testcase&id="+id+args;
}
(I have no ID for the testsuites.)
My TestLink version is 1.7.3 and the url is: javascript:testcase_Link(480).
I have no idea what´s going wrong.
best regards, cosmo
yes, I´m sure. this is the code:
function testcase_Link(id)
{
var pParams = tree_getPrintPreferences();
parent.workframe.location = fRoot+"lib/testcases/archiveData.php?edit=testcase&id="+id+args;
}
(I have no ID for the testsuites.)
My TestLink version is 1.7.3 and the url is: javascript:testcase_Link(480).
I have no idea what´s going wrong.
best regards, cosmo