Skip to content

Timespan

parkd126 edited this page Dec 27, 2018 · 5 revisions

Overview

Structured field to create Timespan for Requests

Fields

Name Type Description
days Int Days of the timespan (e.g. 1)
hours Int Hours of the timespan (e.g. 0-24)
minutes Int Minutes of the timespan (e.g. 0-60)
seconds Int Seconds of the timespan (e.g. 0-60)

Methods

1. toString

Description:

Formats the Timespan object into a String that fits the Timespan syntax required by the TestRail API.

Returns:

String - ("1d4h26m3s")

2. parseTimespan

Description:

Parse a String value to create a Timespan object.

Returns:

Timespan

Clone this wiki locally