Skip to content

ProcessMaker/pm4-testing-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

composer global require processmaker/pm4-testing-tools

Use

> pm4tools hello World
  Hello World

Develop

Add console commands

Create a php artisan command inside console folder e.g.

<?php

use Illuminate\Support\Facades\Artisan;
use ProcessMaker\Models\User;

Artisan::command('users', function () {
    dump(User::pluck('username')->toArray());
})->describe('List all stored user names');

Import testing screen

> pm4tools test:screen
 Available screens:
  [0] validation rules loop
 > 0

Import testing screen by ticket number

> pm4tools test:screen --t=[ticket_number]

Import testing process

> pm4tools test:process
 Available process:
  [0] 1126
 > 0

Import testing process by ticket number

> pm4tools test:process --t=[ticket_number]

Create n users

To create 3 non admin users:

> pm4tools create:user 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •