Kill/Cose the browser

Hi Team,
Using Test Suite Filling a form which gets the data from an excel.

  1. Using App/Web Recorder
  2. Creating Test Case and add the test case
  3. Using Given, When, Then along with Workflow
  4. Once all the data are fed into the form wanted to close the application
    Where can i add kill activity in the flow ?

Option is available within the use browser only

Check the property - Close

Thanks for the update. But this option closes the browser each time after it enters the form details
What i want is

  1. Enter the records in the form and submit. Should not close the window here
  2. Enter the next records (reads from test data excel file) fill the form and submit
  3. Once all records are entered then close the window

@Honda so in the [GIVEN] field you set the precondition - like open the application/Browser
and in the [WHEN] you perform the action like performing operation and like form filling
and in the [THEN] Field you verify the result when the test case has completed its steps and verifications, you can add the kill Activity.

cheers

after you process all the record attach again the browser then change the properties Open Never Close Always

Yes. How to identify all the process is over or not ?
If we can identify that then we can kill the process accordingly
I am accessing the test data from excel

how do you iterate the data?
if you iterate the data with for each row datatable, just put the use app/browser rigth after the for each row datatable.

I am not accessing the excel like what we do using read range activity. If that is the case we know the data table name and its row count.
Here in Test Suite flow is

  1. In work flow right click - create test data
  2. Right test data file - Add test case here i attach the excel file
  3. When we run the test case it will internally access all the rows from the excel file. Hence we not aware of the dt name etc.
  4. Assume there are 5 test data (dynamic) in input excel. How to determine after entering all the data now it’s time to close the browser ?

In Then part you can put If condition and check if its last iteration, if so then put kill over here

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.