I was just learning UiPath (the UiDemo practice example) and was playing with the nice test framework they created in the REF. One of the workflows (Process) I wanted to test required a TransactionItem(QueueItem) as an “in argument”. I didn’t want to have to use an Orchestrator queue just for this in my test harness workflow. I really only needed to start my app up, log into the app, and pass in a transaction before I called “Process”. I also wanted to create tests with different TransactionItem SpecificContent. I noticed there were some questions from other users about being able to create TransactionItems somewhat like this so I thought I would just post. UiPath pros can correct this as necessary.
In any case I did the following in my “Process” related test workflows:
I got a Validation Error when initialise Dictionary: Cannot assign from type ‘System.Collections.Generic.Dictionary`2[System.String,System.Object]’ to type ‘UiPath.Core.QueueItem’ in Assign activity ‘Assign’.
Can anyone send an update what should I do?
Thanks in advance!
May as well just do it in a one liner assigning (after initializing New QueueItem), this is how I am testing with “debug file” instead of “debug”, so I am not running the main.xaml just the workflow process.xaml, with my fake data (so it’s not consuming my queue):