Hello -
I have a string (strTestJSON) that is generated from the output of a ‘Get Transaction Item’ activity using TransactionItem.SpecificContent(“TestContent”).ToString
QueueItem { AssignedTo=null, DeferDate=null, DueDate=null, Id=486110, ItemKey=[56891ee6-1fcb-4402-976a-ea4eacd400cd], LastProcessingOn=null, Output=null, Priority=Normal, ProcessingException=null, Progress=“”, QueueDefinitionId=576, QueueName=“InterimTestData”, Reference=“16798”, RetryNo=0, ReviewStatus=“None”, RowVersion=byte[8] { 0, 0, 0, 0, 0, 15, 175, 102 }, SpecificContent=Dictionary<string, object>(9) { { “TestID”, “16798” }, { “OwnRef”, “automation-test-69421378” }, { “PreviouslyFailed”, “False” }, { “FailedStep”, “” }, { “DefectList”, “” }, { “TestContent”, @"{
““id””: "“1"”,
““test_id””: ““16798"”,
““status_id””: null,
““created_on””: null,
““assignedto_id””: null,
““comment””: ““Report on run for test 16798:””,
““version””: null,
““elapsed””: ““1m 0s””,
““defects””: null,
““created_by””: null,
““custom_step_results””: [
> {
> ““actual””: “” \n - Log in check successfully completed\n - Log in authenticated\n - Bank App loaded successfully"",
> ““status_id””: "“1"”,
> ““content””: ““Instruction: Log on to Bank App and navigate to Manual Transaction module””,
> ““additional_info””: ““Elapsed: 00h 00m 48s””
> },
> {
> ““actual””: “” \n - Template code selected successfully\n - Template details correctly filled in\n - Payment created successfully"",
> ““status_id””: "“1"”,
> ““content””: ““Instruction: Select payment template and enter details””,
> ““additional_info””: ““Elapsed: 00h 01m 04s””
> },
> {
> ““actual””: “” \n - Payment removed from Manual Transaction screen and added to Payment Recon\n - Payment successfully accepted"",
> ““status_id””: "“1"”,
> ““content””: ““Instruction: Accept the now created payment””,
> ““additional_info””: ““Elapsed: 00h 00m 10s””
> }
> ]
> }” }, { “Attachments”, “System.String” }, { “EvidenceLocation”, “C:\Users\xxxx\xxxxx\UiPath\temp\UiPath Tests\FormatsTest.evidence\16798” }, { “CanDo”, true } }, StartTransactionTime=[08/08/2022 04:22:13], Status=InProgress }
I am trying to turn the bold content into the following Dictionary<String, String>
Dictionary<string, string>(4) { { “actual”, string[3] { " \n - Log in check successfully completed\n - Log in authenticated\n - Bank App loaded successfully", " \n - Template code selected successfully\n - Template details correctly filled in\n - Payment created successfully", " \n - Payment removed from ‘Manual Transaction’ screen and added to ‘Payment Factory’\n - Payment successfully accepted" } }, { “status_id”, string[3] { “1”, “1”, “1” } }, { “content”, string[3] { “Instruction: Log on to Bank App and navigate to Manual Transactions module”, “Instruction: Select payment template and enter details”, “Instruction: Accept the now created payment” } }, { “additional_info”, string[3] { “Elapsed: 00h 00m 48s”, “Elapsed: 00h 01m 04s”, “Elapsed: 00h 00m 10s” } } }
Does anyone have any recommendations?
Thanks in advance.
Regards,
symilawr