Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TICKET 0008715: Add a method to retrieve all requirements linked to a… #207

Open
wants to merge 1 commit into
base: testlink_1_9
from

Conversation

Projects
None yet
2 participants
@atisne
Copy link
Contributor

commented Jul 5, 2019

… given test case

TICKET 0008715: Add a method to retrieve all requirements linked to a…
… given test case

Change-Id: Ib9c417f572306dbff9fbe31b3a0a8e32c7c03704
@squash-labs

This comment has been minimized.

Copy link

commented Jul 5, 2019

Manage this branch in Squash

Test this branch here: https://atisnefeature-gettestcaserequi-cs42c.squash.io
@fmancardi

This comment has been minimized.

Copy link
Contributor

commented Jul 5, 2019

Please provide more details, remember that since 1.9.18 req & test cases are not linked anymore at this level, but link is bewteen REQ VERSION and TEST CASE VERSION.
please explain if your implementation works in this way

regards

@atisne

This comment has been minimized.

Copy link
Contributor Author

commented Jul 5, 2019

The implementation is pretty simple:

  • rights check
  • call to the method get_all_for_tcase of the class reqManagement

If this method is ok, it is ok.

@fmancardi

This comment has been minimized.

Copy link
Contributor

commented Jul 5, 2019

@atisne

This comment has been minimized.

Copy link
Contributor Author

commented Jul 15, 2019

Well, I'm not sure to be relevant enough at this technical level...

The method get_all_for_tcase uses an SQL request on tables 'requirements', 'req_coverage', 'req_specs' and 'nodes_hierarchy' with conditions: 'REQ.srs_id=RSPEC.id AND REQ_COVERAGE.req_id=REQ.id AND NHA.id=REQ.id AND NHB.id=RSPEC.id'

get_all_for_tcase is already used in lib/functions/testcase.class.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.