Module: freestyleConfig

Represents the freestyle config page of classic jenkins. Used from within @see module:freestyleCreate

Example

self.api.page.freestyleConfig().forJob(jobName)
 .setFreestyleScript(script)
 .click('@save', oncreated);

Methods


<inner> forJob(jobName)

Returns the config page of a certain job

Parameters:
Name Type Description
jobName String

name of the job to configure

Returns:

self - nightwatch page object

Type
Object

<inner> readTestScript(script)

Synchrony read the script file if exists

Parameters:
Name Type Description
script String

file name

Returns:
Type
*

<inner> setFreestyleScript(script)

Set the freestyle script to the correct input field and then saves the form

Parameters:
Name Type Description
script String

the name of the script that shoould be used to be injected. Has to be present in ROOT/src/test/resources/test_scripts

Returns:

self - nightwatch page object

Type
Object