Jenkins Job for Scriptless Test Case

Configure Build Parameters

In General section

Please configure following String build parameters in job.


Build Parameter

Description

testCaseIdThe name of the test case
deviceMacMAC address of the device
executionModeThe execution environment like RDKB or RDKB
repoThe repository which has to be cloned
EXECUTION_IDThe execution id which comes for debugger service
serviceHost

The host name of the debugger service

end_point

Enter the default value as RACK_DEVICE


Add a Choise Parameter
.

Parameter Name

Description

branchThe branch name for the repo to cloned. Give rdk-next as the choice

Configure Source Code Management

 





Configure Maven Goal for Test Execution

Goals 

clean install -U exec:java -Dmain.class=com.automatics.scriptless.safe.SmartDebugger -DskipTests=true -DretryByDefault=false -DbuildType=RDK -Dhttps.protocols=TLSv1.1,TLSv1.2

-Dsun.security.ssl.allowUnsafeRenegotiation=true -Dautomatics.properties.file={automatics_properties_base_url}/automatics.properties -Dproperties.file.token={Base 64 encrypted login id and password separated by colon }

properties.file.token parameter is used to authenticate automatics properties. The token should be base 64 encrypted with login id and password separated by colon format.
example: admin:automatics when we encrypt it, the value will be YWRtaW46YXV0b21hdGljcw==


Configure Post-Build Actions

 Configure post build actions as shown below.
Under Post build task option, add the below configuration

curl -X PUT -4kw \\nstatus_code:%{http_code}\\n -H "Content-Type: application/json" ${serviceHost}/debuggerservice/updateOverAllStatus -d "{'executionId': ${EXECUTION_ID}, 'overallStatus': 'COMPLETED'}"




Under Archive the artifacts option, add the below configuration

                     



Jenkins Job for Scripted Test Case

Configure Build Parameters

In General section

Please configure following String build parameters in job.


Build Parameter

Description

filterTestIdsThe name of the test case
settopListMAC address of the device
executionModeThe execution environment like RDKB or RDKB
UXGive the default value as RDKM
grThe repo name which will be used for cloning the project
filterTestTypeThe test type for the de
EXECUTION_IDThe execution id which comes for debugger service
serviceHost

The host name of the debugger service

end_point

Enter the default value as RACK_DEVICE


Add a Choise Parameter
.

Parameter Name

Description

grbThe branch name for the repo to cloned. Give rdk-next as the choice

Configure Source Code Management

       





Configure Maven Goal for Test Execution

Goals 

clean install -U exec:java -DskipTests=true -DretryByDefault=false -DbuildType=RDK -Dhttps.protocols=TLSv1.1,TLSv1.2

-Dsun.security.ssl.allowUnsafeRenegotiation=true -Dautomatics.properties.file={automatics_properties_base_url}/automatics.properties -Dproperties.file.token={Base 64 encrypted login id and password separated by colon }

properties.file.token parameter is used to authenticate automatics properties. The token should be base 64 encrypted with login id and password separated by colon format.
example: admin:automatics when we encrypt it, the value will be YWRtaW46YXV0b21hdGljcw==


Configure Post-Build Actions

 Configure post build actions as shown below.
Under Post build task option, add the below configuration

curl -X PUT -4kw \\nstatus_code:%{http_code}\\n -H "Content-Type: application/json" ${serviceHost}/debuggerservice/updateOverAllStatus -d "{'executionId': ${EXECUTION_ID}, 'overallStatus': 'COMPLETED'}"




Under Archive the artifacts option, add the below configuration