From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description= Script console
|description=Using script console.


|setup=
|setup=
# Ensure that Jenkins is running.
# Ensure that Jenkins is up and running
|actions=
|actions=
# run "curl -d 'script=Hudson.instance.version' http://localhost:8080/scriptText"
# run: <code>curl -d 'script=Hudson.instance.version' http://localhost:8080/scriptText"</code>
## the output should be Jenkins version, for example:
#* the output should be Jenkins version, for example:
<pre>
<pre>
Result: 1.575
Result: 1.575
</pre>
</pre>
# go to http://localhost:8080/script and experiment more:
# go to http://localhost:8080/script and experiment more:
## for example: "println(Jenkins.instance.pluginManager.plugins)", this should print list of all installed plugins
#* for example: <code>println(Jenkins.instance.pluginManager.plugins)"</code>
#** this should print list of all installed plugins
|results=
|results=
# there should be no failures or stacktraces printed on stdout/stderr
# there should be no failures or stacktraces printed on stdout/stderr
}}
}}

Revision as of 07:11, 3 September 2014

Description

Using script console.

Setup

  1. Ensure that Jenkins is up and running

How to test

  1. run: curl -d 'script=Hudson.instance.version' http://localhost:8080/scriptText"
    • the output should be Jenkins version, for example:
Result: 1.575
  1. go to http://localhost:8080/script and experiment more:
    • for example: println(Jenkins.instance.pluginManager.plugins)"
      • this should print list of all installed plugins

Expected Results

  1. there should be no failures or stacktraces printed on stdout/stderr