[RICH] - Search and move test cases in Zephyr Enterprise using UI
Hello All, We encounter a situation where we did not find a solution to it and for which we require your advice (https://richemont.atlassian.net/browse/GTACOE-5756) After project migration, we end up with 5000+ test cases under active test cases. Teams would like to start grouping this test cases under specific folder. We have the ID of the test cases to be moved but we did not manage to find a way to use the UI search option to take only the test cases we are interested and move them under specific subfolder. Using drag and drop function on the folder view is not an option as we need to browse all test cases to find the ones that has to be moved and in 5000+ test cases is impossible. Details of the ticket: On the project WeChat - Retail Mini Program we have 500+ test cases under one folder When we try to move some of them under a subfolder in order to group them, there is no easy way to search specific test cases and move only them under a subfolder. This should be made easier otherwise is very much time consuming. Example: Existing test cases: [media] Test cases to be moved: [media] Subfolder where the test cases have to be moved [media] No option to move searched test cases that contains in the name SHOP to a specific folder: [media]
https://richemont.atlassian.net/browse/GTACOE-5930
17 January 2025 at 10:55
Feedback from @Milan VERMA 8see attached email) was to use API calls but as not everyone is expert in API calls, we need a UI solution to this, especially that this tool should be state of the art in this domain:
Here is the endpoint to use for moving testcase:
https://milan.yourzephyr.com/flex/services/rest/v3/testcase/move/from/7793/to/10108
Request Method: POST
77793 is the source folder ID
10108 is the destination ID
Payload example:
{"ids":["95500","95501","106889","106890"],"selectedAll":1}
These IDs are not the same as the UI mentioned IDs:
Open image-20250117-095323.png
image-20250117-095323.png
However, the search API call will provide the correct backend IDs.
https://milan.yourzephyr.com/flex/services/rest/v3/advancesearch/zql
Request Method: POST
Example payload with the search text being “test”:
{"firstresult":0,"maxresults":50,"entitytype":"testcase","order":"orderId","isascorder":true,"is_cfield":false,"releaseid":"5","projectid":"","word":"test","zql":false,"isOld":false}
Response snippet:
Open image-20250117-095356.png
image-20250117-095356.png
In the above example, the second ID shown per testcase is the one we need to use for the move API call.