-
The objective is to write a test-case that tests question-Set copy including copy of branching-Logic.
So I am getting something like:
And as expected, the execution breaks with an exception: Exception occurred - class :org.sunbird.common.exception.ResourceNotFoundException with message :No node found with id: do_11351130082151628813 How can I deal with this in the test-case? I can't know what do_id will be generated during runtime. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@joffinjoy In this case, When 1st call to update hierarchy flow ends, it returns a response having older_do_ids: new_do_ids for all the nodes which are passed under nodesModified section of the request. Please use that response to figure out newly generated section identifier and use it in further flow (e.g: mock returns, etc). |
Beta Was this translation helpful? Give feedback.
@joffinjoy In this case, When 1st call to update hierarchy flow ends, it returns a response having older_do_ids: new_do_ids for all the nodes which are passed under nodesModified section of the request. Please use that response to figure out newly generated section identifier and use it in further flow (e.g: mock returns, etc).
Hope this helps.
cc: @pallakartheekreddy