<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/picvert/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 09 Oct 2014 06:58:13 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/picvert/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="release-12-snapshot"&gt;Release 1.2-SNAPSHOT&lt;/h1&gt;
&lt;p&gt;Picvert is now dependency version agnostic.&lt;br /&gt;
As a consequence upgrading Aigrette is as easy as renaming the latest aigrette-{release}.jar to aigrette.jar then copying the library to the Picvert lib folder.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Thu, 09 Oct 2014 06:58:13 -0000</pubDate><guid>https://sourceforge.net0e7c71602871e00d6eaa293a66f8a1307ca8d653</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="working-with-a-database-connection"&gt;Working with a database connection&lt;/h1&gt;
&lt;p&gt;Some commands for working with a database are included in the internal command set of Picvert:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;DBOPN to open a new connection&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;DBSEL to run a query&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;DBCLS to close an opened connection&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Picvert is written in Java and therefore needs a JDBC driver to work with any database.&lt;br /&gt;
The JDBC library for the target database must be copied in the /extlib directory and the driver class must be specified in the DPOPN command.&lt;/p&gt;
&lt;p&gt;For instance here is a command for opening a connection to a PostgreSQL database:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;DBOPN!::org.postgresql.Driver,jdbc:postgresql://localhost:5432/databasename,user,password,DBCON&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This command open a connection to the database 'databasename' of the local PostgreSQL with user 'user' and password 'password'.  The connection object is put in the variable DBCON and will be available for subsequent operations (queries) with that database.&lt;/p&gt;
&lt;p&gt;Let's see how we could perform a query:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;DBSEL::@DBCON@,select zipcode from address where city = 'Brussels',RES&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The command DBSEL is used to execute a query that get the zip code from the adress table for the city 'Brussels'.  The result is an instance of List&amp;lt;Object&amp;gt; put in the variable RES.&lt;/p&gt;
&lt;p&gt;To get the zipcode of a city name that is given as parameter we could have written:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;DBSEL::@DBCON@,select zipcode from address where city = @CITY@,RES&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The variable CITY must obviously contain the name of the city we want to get the zipcode.&lt;/p&gt;
&lt;p&gt;When we no longer need the database connection we can close it with the statement:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;DBCLS::@DBCON@&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Thu, 04 Sep 2014 11:16:02 -0000</pubDate><guid>https://sourceforge.netcf967ed622c7e1ebf5a9bc242c9bca96fbb8776c</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="logging"&gt;Logging&lt;/h1&gt;
&lt;p&gt;Picvert is generating three outputs:&lt;br /&gt;
- A technical text log which is appended at each run.&lt;br /&gt;
- A text report with very few details that summarize the tests executions, also appended.&lt;br /&gt;
- An XML Junit-formatted log that may be parsed by CI tools like Jenkins.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Fri, 25 Jul 2014 13:00:36 -0000</pubDate><guid>https://sourceforge.net181d9d88404b82d8726b7844cdc7688637c8447b</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="adding-new-command"&gt;Adding new command&lt;/h1&gt;
&lt;p&gt;Adding a new command is quite easy, just follow these steps:&lt;/p&gt;
&lt;p&gt;Create a new class that implements IProcessor and extends&lt;br /&gt;
AbstractCommandProcessor from the picvert-api module.&lt;/p&gt;
&lt;p&gt;Implement the method process(List&amp;lt;String&amp;gt; params, VariableStore store):&lt;br /&gt;
CommandResult where params is the parameters of the command and store contains all&lt;br /&gt;
the variables with their values that have been initialized during the script&lt;br /&gt;
execution.  It is an IN/OUT parameter, that means that new data can be added&lt;br /&gt;
to the store in the method implementation.&lt;/p&gt;
&lt;p&gt;Package the class in a new jar file&lt;/p&gt;
&lt;p&gt;Copy the Jar file in the extlib folder of picvert&lt;/p&gt;
&lt;p&gt;Add the package of the new command in the picvert.properties file&lt;br /&gt;
processor=com.mycompany.myfirstprj,com.mycompany.mysecondprj&lt;/p&gt;
&lt;p&gt;Note that extlib folder and picvert.properties must be in the same directory&lt;br /&gt;
than the picvert jar file.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Wed, 23 Jul 2014 06:56:59 -0000</pubDate><guid>https://sourceforge.net2d080b85206f69cb5b6cb3144c9ffd631e34df76</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="writing-an-automated-scenario"&gt;Writing an automated scenario&lt;/h1&gt;
&lt;p&gt;So far the syntax of Picvert script is quite simple and was designed to&lt;br /&gt;
facilitate its parsing with few Java code.&lt;br /&gt;
A script is composed of a sequence of actions to perform each followed by its&lt;br /&gt;
comma-delimited parameters. The command and the parameters are separated by a&lt;br /&gt;
double colon (::).&lt;br /&gt;
Example:&lt;br /&gt;
COMMAND::PARAM1,PARAM2,...PARAMn&lt;/p&gt;
&lt;h2 id="internal-commands"&gt;Internal commands&lt;/h2&gt;
&lt;p&gt;A collection of command are included in the tool and are obviously available&lt;br /&gt;
for scripting.&lt;br /&gt;
Run java picvert -h to get a list of available commands.&lt;/p&gt;
&lt;h2 id="variables"&gt;Variables&lt;/h2&gt;
&lt;p&gt;Picvert support a simple variable mechanism. Indeed some commands may store a&lt;br /&gt;
result in a variable that may be used later as another command parameter.&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;
PUT::HELLO,VAR&lt;br /&gt;
ECHO::@VAR@&lt;/p&gt;
&lt;p&gt;Executing this script will output "HELLO" to the console.&lt;/p&gt;
&lt;h2 id="loop"&gt;Loop&lt;/h2&gt;
&lt;p&gt;Two different loop are supported by Picvert.&lt;/p&gt;
&lt;p&gt;The simple loop for executing a block of commands multiple times:&lt;/p&gt;
&lt;p&gt;LOOP::2&lt;br /&gt;
ECHO::Looping&lt;br /&gt;
ENDLOOP&lt;/p&gt;
&lt;p&gt;The concurrent loop to execute a block of commands multiple times in separated&lt;br /&gt;
threads:&lt;/p&gt;
&lt;p&gt;CONCURRENT::2&lt;br /&gt;
ECHO::A thread has been created&lt;br /&gt;
ENDCONCURRENT&lt;/p&gt;
&lt;h2 id="conditional-execution-with-if"&gt;Conditional execution with if&lt;/h2&gt;
&lt;p&gt;To perform an action depending on the result of another action use the&lt;br /&gt;
IF/ENDIF commands:&lt;/p&gt;
&lt;p&gt;PUT::1,VAR&lt;br /&gt;
if::@VAR@,==,1&lt;br /&gt;
ECHO::VAR = 1&lt;br /&gt;
ENDIF&lt;/p&gt;
&lt;p&gt;The IF command takes three parameters: a first value or variable, an operator and a&lt;br /&gt;
second value or variable.  Invoke the help to get all the available&lt;br /&gt;
parameters.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Wed, 23 Jul 2014 06:55:39 -0000</pubDate><guid>https://sourceforge.netb242b76a8a72c6e793d316fcd794663c308dd149</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="running-picvert"&gt;Running Picvert&lt;/h1&gt;
&lt;h2 id="prerequisites"&gt;Prerequisites&lt;/h2&gt;
&lt;p&gt;Install the JRE &amp;gt;= 1.7&lt;/p&gt;
&lt;h2 id="executing-picvert-from-the-command-line"&gt;Executing Picvert from the command line&lt;/h2&gt;
&lt;p&gt;Picvert is a Java program that is executed from the command line.&lt;br /&gt;
Here below the list of available parameters:&lt;/p&gt;
&lt;p&gt;-l logfile&lt;br /&gt;
Specify the log file containing detailed information&lt;/p&gt;
&lt;p&gt;-r reportfile&lt;br /&gt;
Specify the reporting file with valued information about test execution&lt;/p&gt;
&lt;p&gt;-h&lt;br /&gt;
Print help about the available command&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;java -jar picvert-{version}.jar -l logger.log -r report.txt scenario.run&lt;br /&gt;
With scenario.run the picvert script file containing the commands to execute.&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Wed, 23 Jul 2014 06:52:02 -0000</pubDate><guid>https://sourceforge.netdd13dad3a60d0b02346690d1368e32178a4805cb</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="installation"&gt;Installation&lt;/h1&gt;
&lt;h2 id="install-the-binary-package"&gt;Install the binary package&lt;/h2&gt;
&lt;p&gt;Unzip the picvert-{version}.zip archive in the desired location.&lt;/p&gt;
&lt;h2 id="build-from-the-sources"&gt;Build from the sources&lt;/h2&gt;
&lt;h3 id="prerequisites"&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;Maven release &amp;gt; 3.0.5 must be installed and mvn command must be in the PATH.&lt;/p&gt;
&lt;h3 id="build-picvert"&gt;Build Picvert&lt;/h3&gt;
&lt;p&gt;Get the sources from sourceforge.net&lt;br /&gt;
Open a shell and cd to the project root directory and run the command:&lt;br /&gt;
mvn clean compile package.&lt;br /&gt;
The archive picvert-{version}.zip is built in the picvert-core/target&lt;br /&gt;
directory.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Tue, 22 Jul 2014 12:55:46 -0000</pubDate><guid>https://sourceforge.neta578eaff864253fb6a831f72f5e192c36a4b89ca</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Picvert is an extensible automation tool written in Java initially developed to perform black box or&lt;br /&gt;
end-user tests. It may also be used to automate other processes involving&lt;br /&gt;
multiple systems.&lt;/p&gt;
&lt;p&gt;To define a test scenario it is necessary to write a script using the simple&lt;br /&gt;
Picvert script syntax.&lt;/p&gt;
&lt;p&gt;The extensibility is obtained by adding new commands. It is achieved by&lt;br /&gt;
creating new classes that implement a specific interface.  The new classes&lt;br /&gt;
must be packaged in a jar file that will be used by picvert at runtime.&lt;br /&gt;
Indeed the new command classes extend the command set that may be used in the&lt;br /&gt;
Picvert script.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Tue, 22 Jul 2014 12:34:04 -0000</pubDate><guid>https://sourceforge.neta29fba043475b40c21a4b82a1ae7461735a9f8af</guid></item><item><title>Home modified by Olivier Meurice</title><link>https://sourceforge.net/p/picvert/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/picvert/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/userid-1731266/"&gt;Olivier Meurice&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-5322b114c43143582d07145c" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olivier Meurice</dc:creator><pubDate>Fri, 14 Mar 2014 07:34:44 -0000</pubDate><guid>https://sourceforge.net5270ca9c4ae66be44aafdc790821dbd0dfe82d22</guid></item></channel></rss>