I have a scenario where i need to read all files from folder and based on file name i need to upload the file in web application.
I designed in a way:
Read all files from folder
-for each file in folder
-If filename is “A” upload file in X screen.
-If filename is “B” upload file in Y screen.
-If filename is “C” upload file in Z screen.
I have to write a logic ,if file name “A” condition fails(Either missing some value or screen not loaded correctly) write the exception and should continue to read the next file in for each loop and upload the file name is “B”
Apprecaite your help here!