<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>8.2. Marvin</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Developers_Guide-4.1.0-it-IT-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.1.0');
              
              addID('Apache_CloudStack.4.1.0.books');
	      addID('Apache_CloudStack.4.1.0.Developers_Guide');
              </script><link rel="home" href="index.html" title="Manuale dello Sviluppatore CloudStack" /><link rel="up" href="tools.html" title="Capitolo 8. Tools" /><link rel="prev" href="devcloud.html" title="8.1. DevCloud" /><link rel="next" href="cloudmonkey.html" title="8.3. CloudMonkey" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="devcloud.html"><strong>Indietro</strong></a></li><li class="next"><a accesskey="n" href="cloudmonkey.html"><strong>Avanti</strong></a></li></ul><div xml:lang="it-IT" class="section" id="marvin" lang="it-IT"><div class="titlepage"><div><div><h2 class="title" id="marvin">8.2. Marvin</h2></div></div></div><div class="para">
		Marvin is the CloudStack automation framework. It originated as a tool for integration testing but is now also used to build DevCloud as well as to provide a Python CloudStack API binding.
	</div><div class="note"><div class="admonition_header"><h2>Nota</h2></div><div class="admonition"><div class="para">
			Marvin's complete documenation is on the wiki at <a href="https://cwiki.apache.org/CLOUDSTACK/testing-with-python.html">https://cwiki.apache.org/CLOUDSTACK/testing-with-python.html</a>
		</div><div class="para">
			The source code is located at <span class="emphasis"><em>tools/marvin</em></span>
		</div></div></div><div xml:lang="it-IT" class="section" id="building-marvin" lang="it-IT"><div class="titlepage"><div><div><h3 class="title" id="building-marvin">8.2.1. Building and Installing Marvin</h3></div></div></div><div class="para">
		Marvin is built with Maven and is dependent on APIdoc. To build it do the following in the root tree of CloudStack:
	</div><pre class="programlisting">mvn -P developer -pl :cloud-apidoc</pre><pre class="programlisting">mvn -P developer -pl :cloud-marvin</pre><div class="para">
		If successful the build will have created the cloudstackAPI Python package under tools/marvin/marvin/cloudstackAPI as well as a gziped Marvin package under tools/marvin dist. To install the Python Marvin module do the following in tools/marvin:
	</div><pre class="programlisting">sudo python ./setup.py install</pre><div class="para">
		The dependencies will be downloaded the Python module installed and you should be able to use Marvin in Python. Check that you can import the module before starting to use it.
	</div><pre class="programlisting">$ python
Python 2.7.3 (default, Nov 17 2012, 19:54:34) 
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import marvin
&gt;&gt;&gt; from marvin.cloudstackAPI import *
&gt;&gt;&gt;</pre><div class="para">
		You could also install it using <span class="emphasis"><em>pip</em></span> or <span class="emphasis"><em>easy_install</em></span> using the local distribution package in tools/marvin/dist :
	</div><pre class="programlisting">pip install tools/marvin/dist/Marvin-0.1.0.tar.gz</pre><div class="para">
		Or:
	</div><pre class="programlisting">easy_install tools/marvin/dist/Marvin-0.1.0.tar.gz</pre></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="devcloud.html"><strong>Indietro</strong>8.1. DevCloud</a></li><li class="up"><a accesskey="u" href="#"><strong>Risali</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Partenza</strong></a></li><li class="next"><a accesskey="n" href="cloudmonkey.html"><strong>Avanti</strong>8.3. CloudMonkey</a></li></ul></body></html>
