Hello,
While learning on how to work with data driven test cases i encoutered this issue, i have been battling with it whole day and i cannot find a solution to it.
Whenever i select a source for Test Data Queue for TestCase i get this error. Im able to sent this test case to Orchestrator, perform a test and send the results, so i dont think its a problem with Orchestrator not being connected.
Hello,
Yes here are details:
"
Error: UiPath.Studio.Contracts.RecoverableException: The Orchestrator returned the status code Forbidden. Please make sure you have the rights to execute Test Data Queue APIs
—> System.Exception: {“message”:“You are not authorized!”,“errorCode”:0,“result”:null,“targetUrl”:null,“success”:false,“error”:{“code”:0,“message”:“You are not authorized!”,“details”:“You are not allowed to perform this operation.”,“validationErrors”:null},“unAuthorizedRequest”:true,“__abp”:true}
— End of inner exception stack trace —
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.TestDataQueues.TestDataQueueRestApi.ValidateResponse(IRestResponse restResponse, String endpoint)
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.TestDataQueues.TestDataQueueRestApi.GetTestDataQueues(CancellationToken cancellationToken)
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.Services.DataVariationTestDataQueueService.GetTestDataQueues(CancellationToken ct)
at UiPath.Studio.Plugin.Workflow.Testing.DataVariation.ViewModels.ImportDataVariationTestDataQueueControlViewModel.ReadTestDataQueues(), HResult -2146233088
"
As per error you are not authorized it might be apermission issue as well…when you say you already ran a test case did something change after it? Do you have access tot he require dtest data aueue and the folder it is present in
I too am having a problem with creating a new test case that uses a test data queue.
I’m going through the UiPath training module ‘Get Started with Testing in Studio’, and am at the exercise ‘Creating a data-driven test case’. The new queue is created and now populated with data.
When I try to create a new test case and select test data source = Test data I get the error ‘There was an error while collecting Test Data Queues metadata’. The error log shows I am not authorized.
Such ‘Not authorised’ messages I see when I’ve not specified the Folder for a queue (e.g. for Bulk create queue items’), but the panel does not ask for the folder name.
In Project Settings for the test automation project, there is a page for ‘Test Manager Settings’, with no URL and ‘Disconnected’ state.