report, namespace, end, section, reporting, scriptless, script-less, scripted, step, view, stepview

Method Zap.Report.EndSection

Ends the Result Section with the name. If the current section has the different name, it will use the next session with the given name

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function Zap.Report.EndSection ( 
    String SectionName
)

ZAP Utility

ZAP Utility step

Zap...EndSection

Open website

SectionName

Parameters

SectionName

Type: String

Section Name

Returns

True if Result Block is found, otherwise - false

Example

VBScript

'create separate report section
Zap.Report.StartSection "Open Website"
Application("zap").Launch "chrome", "www.zaptest.com"
Application("zap").View("Homepage").Object("ZAPTEST").Exist
Zap.Report.EndSection "Open Website"

JavaScript

// create separate report section
Zap.Report.StartSection("Open Website");
Application("zap").Launch("chrome", "www.zaptest.com");
Application("zap").View("Homepage").Object("ZAPTEST").Exist();
Zap.Report.EndSection("Open Website");

Comment

Create separate report section for website opening

Script-Less next step

ZAP Utility

ZAP Utility step

Zap...StartSection

Open website

Script-Less next step

Application

ZAP Object step

Launch

chrome

zaptest.com

Script-Less next step

ZAP Utility

ZAP Utility step

Zap...EndSection

Open website

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552