How to use Parallel

uiautomation
activities

#1

Please give some samples on how to use Parallel activity with scenarios where to use.


マクロから表示されるメッセージにあるボタン
#2

The ParallelActivity activity lets you schedule two or more child SequenceActivity activity branches for processing at the same time. Although branch SequenceActivity activities are scheduled to start processing at the same time, they do not start processing at the same time. Processing begins with the execution of one activity that is contained in one of the SequenceActivity branches.

https://msdn.microsoft.com/en-us/library/ms734755(v=vs.90).aspx


How to run the two sequence process at a time
#3

I used it to scrape data from 3 different websites in parallel and store the results in an Excel file for each website separately. You just need to make sure not to use any activities that require focus or searching for an image or the process will likely run into a timeout. Also, be aware of any parallel file access, which can also fail (I copy an Excel template for the results, which seems to fail sometimes if 2 processes try to do it at the same time).


How to add data to a specific column by iterating through loop in the same excel sheet from which the data is being read?
#4

Thanks a lot.


Parallel activity example
#5

Hi @Christian_Hennig, Can you please provide me some source to know how this can be done? I need to run multiple xaml files that scraps data from website and stores in excel. I have multiple files and need to run parallel for efficient time. Please let me know the process how this can be done.

Regards,
Komal


#6

Sorry, I can’t upload files yet. I have changed accounts. But I uploaded it to my dropbox.

My project basically does the same you want to do. Run 3 sites in parallel, extract table data and store it in Excel files.


#7

Parallel activity doesn’t work as intended at all. It executes the sequences in left to right order.


#8

Source?
It works just fine, if children are parallel-compatible (like invokes in Chris’s project).


#9

HI @vikasrawat911,
May be this link helps you.

Regards
Balamurugan.S


#10

hi watch this video for better understanding


#11

I found the issue. There has to be some sort of delay inside the parallel sequence. This delay can come from click, get text or any other activities. Earlier I was using only logs in the parallel sequences of parallel activity hence, only left sequence was getting executed.


#12

great and simple video (1 & 2).

Thank sara_s