Meteor

V4.0.1 Apr 15 2021

Scenario {{ctrl.config.name}}

{{ctrl.deploimentsuc}}
Enable Experience scenarii

Case Id . Collect in progress...
Name Process Robots Cases/rob Delay start (ms) sleep (ms)
{{scenario.processname}} ({{scenario.processversion}}) ({{scenario.nbrobs*scenario.nbcases}})
Details
ActionTime LineWait BeforeUserContract
Instantiation {{scenario.usernamecreatedby}}
{{timeline.actname}}

{{timeline.actdisplayname}}
{{timeline.timeLineFromBeginningMS_st}} {{timeline.executedby}}

Scenario {{ctrl.config.name}}

{{ctrl.deploimentsuc}}
Enable Process scenarii

. Collect in progress... {{ctrl.status}}
    
Show only actives robot
Name Robots exec/rob Delay start (ms) sleep (ms) Contract
{{processinfo.information}} ({{processinfo.nbrob*processinfo.nbcases}})
%
  {{activityinfo.activityname}} ({{activityinfo.nbrob*activityinfo.nbcases}})
%

Scenario {{ctrl.config.name}}

{{ctrl.deploimentsuc}}
. {{ctrl.operation}} in progress {{ctrl.listUrlPercent}}%...

Completion Robot State Nb errors Advance Time(ms) Average(ms)
({{robotinfo.percentAdvance}}%)
({{robotinfo.percentAdvance}}%)
{{robotinfo.title}} {{robotinfo.status}} {{robotinfo.nbErrors}} {{robotinfo.adv}} {{robotinfo.time}} {{robotinfo.timeavg}}
Details
{{robotinfo.log}}
Simulation Id {{ctrl.simulationid}}
Status {{ctrl.execution.status}}
Time started: {{ctrl.execution.timeStarted}}
Delay to finish (estimation) {{ctrl.execution.timeEstimatedDelay}}
Time end (estimation) {{ctrl.execution.timeEstimatedEnd}}
Time end {{ctrl.execution.timeEnded}}
Percent global {{ctrl.execution.percentAdvance}}%
Simulations in progress
{{simulation.id}} {{simulation.percentAdvance}}% {{simulation.timeEstimatedEnd}} {{simulation.timeEstimatedDelay}}
.

Cover

This section give the percent of each running scenario
Process General cover Happy path cover Error Activities not covered
{{processinfo.processname}} ({{processinfo.processversion}}) {{processinfo.coverpercent}} % {{processinfo.coverhappypathpercent}} %
{{processinfo.activitiesnotcovered}}

Scenario {{ctrl.config.name}}

{{ctrl.deploimentsuc}}
Test passed with {{ctrl.execution.percentunittest}} %
Test Status
{{robotinfo.name}}
Success
Error

Unit test executed in {{ctrl.execution.timeinms}} ms

Scenario {{ctrl.config.name}}

{{ctrl.deploimentsuc}}
Scenario name :

List of Scenario:

Drop your scenario (zip file) here
. Operation in progress {{ctrl.listUrlPercent}}%...

Automate tests

To automate the test, first, load the scenario on your server. Then, you can execute it on-demand, via these different options:
  • use an external scheduler (Jenkins, Cron) and REST API
  • Using the REST API, you have first to log on to the server, via the Login Rest API. Second, call this REST API to start the execution:
    Start:
    /bonita/portal/custom-page/custompage_meteor?page=custompage_meteor&action=loadandstart&scenario={{ctrl.config.newname}}
    Status: (you have to wait the end of execution)
    /bonita/portal/custom-page/custompage_meteor?page=custompage_meteor&action=status&simulationid=<simulationId>
  • use an external scheduler and JAVA API
  • You have first to log on to the server via the JAVA API. Second, use the MeteorAPI
    import org.bonitasoft.meteor.MeteorClientAPI;
    Map resultCommand = meteorClientAPI.startFromScenarioName(scenarioName, apiAccessor.getProcessAPI(), apiAccessor.getCommandAPI(), 1L /* Tenantid */);

    String simulationId = (String) resultCommand.get( CmdMeteor.cstParamResultSimulationId);

    if (simulationId!=null)
    {
    /* you have to wait the end of execution */
    /* Check the status */
    Map resultStatus = meteorClientAPI.getStatus(statusParameters, apiAccessor.getProcessAPI(), apiAccessor.getCommandAPI(), jobExecution.tenantId);
    String statusSimulation = (String) resultStatus.get( MeteorSimulation.CSTJSON_STATUS);
    Integer percentAdvance = (Integer) resultStatus.get( MeteorSimulation.CSTJSON_PERCENTADVANCE );
    if (MeteorSimulation.STATUS.DONE.toString().equals( statusSimulation )) {
    /** we are successfull */
    }
    }
  • Use the TruckMilk plugin Meteor
  • Create a job, and gives the scenario name.