processmaker4 / pm4-testing-tools
pm4-testing-tools
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 23
Forks: 1
Open Issues: 0
Type:project
This package is auto-updated.
Last update: 2024-10-17 21:46:24 UTC
README
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