[jboss-jira] [JBoss JIRA] (SWSQE-383) Run UI tests and REST tests sequentialy not in parallel
Filip Brychta (JIRA)
issues at jboss.org
Wed Aug 22 07:10:00 EDT 2018
[ https://issues.jboss.org/browse/SWSQE-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Brychta resolved SWSQE-383.
---------------------------------
Resolution: Done
It's done this way now:
stage('Run UI Tests') {
when { environment name: 'RUN_UI_TESTS', value: 'true' }
steps {
script {
b = build(job: 'python-ui-tests-parallel',
parameters: [
[$class: 'StringParameterValue', value: "${params.OS_USERNAME}", name: 'OS_USERNAME'],
[$class: 'StringParameterValue', value: "${params.OS_PASSWORD}", name: 'OS_PASSWORD'],
[$class: 'StringParameterValue', value: "https://${params.OS_HOSTNAME}:${params.OS_PORT}", name: 'OS_URL']
],
propagate: false
).result
if(b != 'SUCCESS') {
currentBuild.result = 'UNSTABLE'
}
}
}
}
stage('REST API tests') {
when { environment name: 'RUN_REST_TESTS', value: 'true' }
steps {
build(job: 'run-python-rest-tests',
parameters: [
[$class: 'StringParameterValue', value: "${params.OS_USERNAME}", name: 'OS_USERNAME'],
[$class: 'StringParameterValue', value: "${params.OS_PASSWORD}", name: 'OS_PASSWORD'],
[$class: 'StringParameterValue', value: "https://${params.OS_HOSTNAME}:${params.OS_PORT}", name: 'OS_URL']
]
)
}
}
> Run UI tests and REST tests sequentialy not in parallel
> -------------------------------------------------------
>
> Key: SWSQE-383
> URL: https://issues.jboss.org/browse/SWSQE-383
> Project: Kiali QE
> Issue Type: Bug
> Reporter: Filip Brychta
> Assignee: Filip Brychta
>
> We are running UI and REST tests in parallel but those tests are not atomic. We need to run it sequentially.
> Here is the main pipeline snippet:
> stage('Run Tests') {$
> parallel {$
> stage('Python UI tests') {$
> when { environment name: 'RUN_UI_TESTS', value: 'true' }$
> steps {$
> build(job: 'run-python-ui-tests',$
> parameters: [$
> [$class: 'StringParameterValue', value: "${params.OS_USERNAME}", name: 'OS_USERNAME'],$
> [$class: 'StringParameterValue', value: "${params.OS_PASSWORD}", name: 'OS_PASSWORD'],$
> [$class: 'StringParameterValue', value: "https://${params.OS_HOSTNAME}:${params.OS_PORT}", name: 'OS_URL'],$
> ]$
> )$
> }$
> }$
> stage('REST API tests') {$
> when { environment name: 'RUN_REST_TESTS', value: 'true' }$
> steps {$
> build(job: 'run-python-rest-tests',$
> parameters: [$
> [$class: 'StringParameterValue', value: "${params.OS_USERNAME}", name: 'OS_USERNAME'],$
> [$class: 'StringParameterValue', value: "${params.OS_PASSWORD}", name: 'OS_PASSWORD'],$
> [$class: 'StringParameterValue', value: "https://${params.OS_HOSTNAME}:${params.OS_PORT}", name: 'OS_URL'],$
> ]$
> )$
> }$
> }$
> }$
> }
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list