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.
- first files director use (collection / array) = directory.getfiles(@"filepath"); //in c#
- with collection/array list can pass arguments ui map code copied , repeat until files upload.
Comments
Post a Comment