I have a Excel sheet which has the navigation steps to different tabs of a web application.
For example : Column1 has
1.Login
2. Personal Info
3. Business Info
4.Logout
These are the steps which it should follow in application.
The process should be like first read the excel and then follow the step of login ,go to personal info tab, then Business info and lastly logout.
You create 4 xamls for each of the actions, you read the excel file & iterate through the data. Inside the for each loop, you can take 4 separate if conditions & check for the row(“Column1”) data. Based on the steps, invoke the workflow accordingly.
Read Range: Read the Excel file into a DataTable variable.
For Each Row: Loop through each row in the DataTable. a. Switch: Check the value in the first column of the current row. i. Case “Login”: Add steps to open the web application, enter the login credentials, and navigate to the “Personal Info” tab. ii. Case “Personal Info”: Add steps to navigate to the “Personal Info” tab. iii. Case “Business Info”: Add steps to navigate to the “Business Info” tab. iv. Case “Logout”: Add steps to logout of the web application. b. End Switch
I didn’t get you. For eg if the process has to go to Business info tab the excel would have the details of start step . business Info might not be the main tab it might be under any other tab.
Login–> Main tab–> Business Info sub tab.
Since you have already invoked the login workflow from step 1, you can continue the action when the loop comes to the business info tab. You can even pass the browser variable (homepage after login) to the business info invoking workflow, so that the remaining actions can be carried out.
Edit: Attaching the design workflow for your understanding. You observe how the login page xaml can be tangled with personal info xaml by passing browser element between them.