automation - Coded UI Test - How to Pick multiple files from a location -


i have set of doc files(nearly 300+) needs uploaded in site. visual studio 2010 test automation, coded ui test, have recorded steps single file , when run code worked.

now, want happen in loop, after uploading 1st file, when code runs again , when hits upload button should pick second file file location. how code ?

any appreciated.

record , play work 1 file recorded. need code changes taking recorded code , parameterize files line of code.

  1. first files director use (collection / array) = directory.getfiles(@"filepath"); //in c#
  2. with collection/array list can pass arguments ui map code copied , repeat until files upload.

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -