Module: util/url

Methods


<static> clickTab(self, tab)

click a certain tab and validate that url has changed

Parameters:
Name Type Description
self Object

self - nightwatch page object

tab

name of the tab you want to click


<static> configureBuildExecutor()

get the url to set the Build Executor

Returns:
Type
String

<static> getJobUrl(launchUrl, jobName)

In case we have multiBranch projects or we are using folder, we need to calculate the path, prefix every folder with /job/

Parameters:
Name Type Description
launchUrl

this is normally equal to this.api.launchUrl

jobName String

name of the job to configure

Returns:

url calculate the url of a mutlibranch

Type
String

<static> makeRelative(url)

make it relative

Parameters:
Name Type Description
url String
Returns:

url

Type
String

<static> tabSelector(tabName)

Return css selector of a specific tab

Parameters:
Name Type Description
tabName string

the tab we want to select

Returns:
Type
string

<static> viewAllPipelines()

get the url to list all pipelines

Returns:
Type
string

<static> viewPipeline()

get the url to list all pipelines

Returns:
Type
string

<static> viewPipelineActivity(orgName, jobName)

Return the path to the activity defined by the orgName and jobName

Parameters:
Name Type Description
orgName String

name of the organisation

jobName String

name of the job

Returns:
Type
string

<static> viewRunPipeline(orgName, jobName, branchName, buildNumber)

returns the url for a job detail in blueocean

Parameters:
Name Type Description
orgName

name of the organisation

jobName String

name of the job

branchName String

name of the branch (may be the same as jobname, in case of freestyle

buildNumber String

number the build

Returns:
Type
string