exec($query);
return array('', 0);
} catch (Exception $e) {
return array($e->getMessage(), 1);
}
}
$error = '';
$status = '';
PACommonDBUpdateRecord($query, $error, $status);
return array($error, $status);
}
function PA_DASH_TESTING_M_db_rows($query)
{
$data = array();
$cnt = 0;
$error = '';
$status = '';
PACommonDBSelectMultipleRecords($query, $data, $cnt, $error, $status);
if (!is_array($data)) {
$data = array();
}
return array($cnt, $error, $status, $data);
}
function PA_DASH_TESTING_M_create_tables()
{
PA_DASH_TESTING_M_db_exec("
CREATE TABLE IF NOT EXISTS PA_TESTING_DashTestRuns (
DashTestRunID int NOT NULL AUTO_INCREMENT,
DashID int NOT NULL DEFAULT 0,
CaseName varchar(64) NOT NULL DEFAULT '',
ClientID int NOT NULL DEFAULT 0,
ClientDevicesID int NOT NULL DEFAULT 0,
DeviceID varchar(64) NOT NULL DEFAULT '',
TestTitle varchar(255) NOT NULL DEFAULT '',
TestStatus enum('Not Started','In Progress','Passed','Failed','Blocked','Fixed') NOT NULL DEFAULT 'Not Started',
CreatedByAdminID int NOT NULL DEFAULT 0,
Insert_DateTime varchar(19) NOT NULL DEFAULT '0000-00-00 00:00:00',
Update_DateTime varchar(19) NOT NULL DEFAULT '0000-00-00 00:00:00',
RecordStatus int NOT NULL DEFAULT 0,
PRIMARY KEY (DashTestRunID),
KEY idx_dash (DashID),
KEY idx_status (TestStatus, RecordStatus)
)
");
PA_DASH_TESTING_M_db_exec("
CREATE TABLE IF NOT EXISTS PA_TESTING_DashTestSteps (
DashTestStepID int NOT NULL AUTO_INCREMENT,
DashTestRunID int NOT NULL DEFAULT 0,
StepNumber varchar(16) NOT NULL DEFAULT '',
RoleType varchar(64) NOT NULL DEFAULT '',
ProductSurface varchar(128) NOT NULL DEFAULT '',
StepTitle varchar(255) NOT NULL DEFAULT '',
StepInstructions text,
ExpectedResult text,
NotificationCheck text,
SourceTemplateID int NOT NULL DEFAULT 0,
SourceDashStepID int NOT NULL DEFAULT 0,
TestStatus enum('Not Started','Passed','Failed','Blocked','Fixed') NOT NULL DEFAULT 'Not Started',
TesterNotes text,
FailureNotes text,
FixNotes text,
Insert_DateTime varchar(19) NOT NULL DEFAULT '0000-00-00 00:00:00',
Update_DateTime varchar(19) NOT NULL DEFAULT '0000-00-00 00:00:00',
RecordStatus int NOT NULL DEFAULT 0,
PRIMARY KEY (DashTestStepID),
KEY idx_run (DashTestRunID, RecordStatus),
KEY idx_role (RoleType, TestStatus)
)
");
}
function PA_DASH_TESTING_M_migrate_tables()
{
PA_DASH_TESTING_M_db_exec("UPDATE PA_TESTING_DashTestRuns SET TestStatus = 'Not Started' WHERE TestStatus = 'Skipped'");
PA_DASH_TESTING_M_db_exec("UPDATE PA_TESTING_DashTestSteps SET TestStatus = 'Not Started' WHERE TestStatus = 'Skipped'");
PA_DASH_TESTING_M_db_exec("
ALTER TABLE PA_TESTING_DashTestRuns
MODIFY TestStatus enum('Not Started','In Progress','Passed','Failed','Blocked','Fixed') NOT NULL DEFAULT 'Not Started'
");
PA_DASH_TESTING_M_db_exec("
ALTER TABLE PA_TESTING_DashTestSteps
MODIFY TestStatus enum('Not Started','Passed','Failed','Blocked','Fixed') NOT NULL DEFAULT 'Not Started'
");
}
function PA_DASH_TESTING_M_escape($value)
{
return addslashes((string)$value);
}
function PA_DASH_TESTING_M_load_context($dashID)
{
$where = $dashID > 0
? "d.DashID = " . intval($dashID)
: "d.CaseName = 'PA-20260919-0000260'";
list($cnt, $error, $status, $rows) = PA_DASH_TESTING_M_db_rows("
SELECT
d.DashID,
d.CaseName,
d.Status,
d.AssignedAdminID,
d.ClientID,
d.ClientDevicesID,
d.PIID,
d.Insert_DateTime,
cd.DeviceID,
cd.NameTag,
u.user_email,
u.display_name,
MAX(CASE WHEN um.meta_key = 'first_name' THEN um.meta_value END) AS FirstName,
MAX(CASE WHEN um.meta_key = 'last_name' THEN um.meta_value END) AS LastName,
MAX(CASE WHEN um.meta_key = 'billing_phone' THEN um.meta_value END) AS Phone
FROM PART_Dash d
LEFT JOIN ClientDevices cd ON cd.ClientDevicesID = d.ClientDevicesID
LEFT JOIN wp_users u ON u.ID = d.ClientID
LEFT JOIN wp_usermeta um ON um.user_id = u.ID
WHERE " . $where . "
AND d.RecordStatus = 0
GROUP BY d.DashID
ORDER BY d.DashID DESC
LIMIT 1
");
$dash = ($cnt > 0 && isset($rows[0])) ? $rows[0] : array();
$contacts = array();
if (!empty($dash['ClientID'])) {
list($ccnt, $cerror, $cstatus, $contacts) = PA_DASH_TESTING_M_db_rows("
SELECT ClientContactsID, ClientDevicesID, ClientID, ContactType, FirstName, LastName, Telephone, Email
FROM ClientContacts
WHERE ClientID = " . intval($dash['ClientID']) . "
AND (ClientDevicesID = " . intval($dash['ClientDevicesID']) . " OR ClientDevicesID = 0)
ORDER BY ContactType, ClientContactsID
");
}
$currentSteps = array();
if (!empty($dash['DashID'])) {
list($scnt, $serror, $sstatus, $currentSteps) = PA_DASH_TESTING_M_db_rows("
SELECT s.DashStepID, s.DashStepTemplateID, s.DashStepUserType, s.Status, t.Title
FROM PART_DashSteps s
LEFT JOIN PART_DashStepTemplates t ON t.DashStepTemplateID = s.DashStepTemplateID
WHERE s.DashID = " . intval($dash['DashID']) . "
AND s.RecordStatus = 0
ORDER BY s.DashStepID
");
}
return array($dash, $contacts, $currentSteps);
}
function PA_DASH_TESTING_M_find_contact($contacts, $type)
{
foreach ($contacts as $contact) {
if (intval($contact['ContactType']) === intval($type)) {
return $contact;
}
}
return array('FirstName' => '', 'LastName' => '', 'Telephone' => '', 'Email' => '');
}
function PA_DASH_TESTING_M_test_steps($dash, $contacts)
{
global $PASYSCONF;
$clientName = trim(($dash['FirstName'] ?? '') . ' ' . ($dash['LastName'] ?? ''));
if ($clientName == '') {
$clientName = $dash['display_name'] ?? 'Client';
}
$clientEmail = $dash['user_email'] ?? '';
$clientPhone = $dash['Phone'] ?? '';
$caseName = $dash['CaseName'] ?? '';
$primary = PA_DASH_TESTING_M_find_contact($contacts, 1);
$secondary = PA_DASH_TESTING_M_find_contact($contacts, 2);
$primaryName = trim(($primary['FirstName'] ?? '') . ' ' . ($primary['LastName'] ?? ''));
$secondaryName = trim(($secondary['FirstName'] ?? '') . ' ' . ($secondary['LastName'] ?? ''));
$paAlertEmail = $PASYSCONF["DASH"]["PA_ALERT_EMAIL"] ?? 'Not configured';
$paAlertSms = $PASYSCONF["DASH"]["PA_ALERT_SMS"] ?? 'Not configured';
return array(
array('1', 'Admin Step', 'Admin Website', 'Confirm alert appears in DASH Queue',
"1. Open the Admin Website.\n2. Go to Pink Angels Alert DASH Queue.\n3. Confirm case " . $caseName . " appears under Priority: Not Assigned Kidnap Alerts.\n4. Confirm the step title is Kidnap Alert Received.\n5. Confirm Assigned Pink Angel shows Not Assigned.",
"The alert is visible to the admin team and ready for an admin to take ownership.", "No email or text message should be sent just by viewing the queue.", 1),
array('2', 'Notification Confirm', 'Email and SMS', 'Confirm initial admin alert notifications',
"1. Confirm the Pink Angels admin alert email was received.\n2. Confirm the email subject says: PART ALERT: Possible Kidnap - " . $clientName . ".\n3. Confirm the Pink Angels admin alert text message was received.\n4. Record whether either notification was missing or delayed.",
"The first alert email and text message are received by the Pink Angels admin notification recipient.", "Pink Angels admin alert email should be checked at " . $paAlertEmail . ". Pink Angels admin alert text message should be checked at " . $paAlertSms . ".", 1),
array('3', 'Admin Step', 'Admin Website', 'Take ownership and confirm possible danger',
"1. Open Kidnap Alert Received.\n2. Check Assign To Me.\n3. For Question: \"How was the alert received?\", choose \"Tracker Button\".\n4. For Question: \"Did " . $clientName . " respond?\", choose \"Answered\".\n5. For Question: \"Is " . $clientName . " in danger?\", choose \"Yes\".\n6. In notes, enter: TEST: Admin confirmed possible danger.\n7. Click Submit.",
"The admin ownership step completes. The system creates an admin step to recruit a Private Investigator and a client status update step.", "The client should receive a status update email at " . $clientEmail . ". The client should receive a text message at " . $clientPhone . ".", 1),
array('4', 'Client Step', 'Client Mobile App', 'Client acknowledges status update',
"1. Open the Client Mobile App.\n2. Log in as " . $clientName . ".\n3. Open the Status Update for case " . $caseName . ".\n4. For Question: \"Acknowledge this update about " . $clientName . "?\", choose \"Acknowledge\".\n5. Submit the response.",
"The client can see the update and acknowledge it in the Client Mobile App.", "Check the client email at " . $clientEmail . ". Check the client text message at " . $clientPhone . ".", 12),
array('5', 'Admin Step', 'Admin Website', 'Recruit Private Investigator',
"1. In the Admin Website, open Recruit Private Investigator.\n2. For Question: \"Severity level for " . $clientName . "'s case?\", choose \"Critical\".\n3. For Question: \"Notify police about " . $clientName . "?\", choose \"Yes\".\n4. For Question: \"How do you want to find Private Investigators?\", choose \"Specific Investigators\".\n5. If a Private Investigator selector is visible, choose \"PA Investigator #1\".\n6. In notes, enter: TEST: Admin recruiting PI for possible kidnap case.\n7. Click Submit.",
"The expected workflow creates a Private Investigator step called Acknowledge Case Assignment. Known issue to verify: the current Admin Website may not provide a working way to assign a specific Private Investigator.", "The selected Private Investigator should receive a case available email at PI@PINKANGELSRESCUETEAM.COM and a text message at 16024217184.", 5),
array('6', 'PI Step', 'PI Mobile App', 'PI confirms case is available',
"1. Open the PI Mobile App.\n2. Log in as the selected Private Investigator.\n3. Confirm case " . $caseName . " appears.\n4. Open Acknowledge Case Assignment.",
"PI can see the assigned/available case. If no case appears, mark Failed or Blocked and note PI assignment gap.", "Confirm PI case-available email/SMS records if step was generated.", 6),
array('7', 'PI Step', 'PI Mobile App', 'PI accepts assignment',
"1. In the PI Mobile App, open Acknowledge Case Assignment.\n2. For Question: \"Are you available for " . $clientName . "'s case?\", choose \"Available\".\n3. Submit the response.",
"The system creates these next work items: Admin reviews the PI report, PI investigates and reports, client receives a status update, and emergency contact receives a status update if assigned.", "Confirm the admin gets a review-required notification. Confirm the PI gets an investigation task notification. Confirm the client and emergency contact get status update notifications where applicable. Check text messages on the phone number for each role.", 6),
array('8', 'PI Step', 'PI Mobile App', 'PI submits investigation update',
"1. In the PI Mobile App, open Investigate & Report.\n2. For Question: \"Has " . $clientName . " been located?\", choose \"No\".\n3. For Question: \"Are there danger indicators for " . $clientName . "?\", choose \"Yes\".\n4. For Question: \"Need info from " . $secondaryName . "?\", choose \"Yes\".\n5. In notes, enter: TEST: PI needs additional emergency contact information.\n6. Submit the response.",
"The system creates an emergency contact step to provide information and an admin step to review the PI report.", "The emergency contact should receive an information request email at " . ($secondary['Email'] ?? '') . " and a text message at " . ($secondary['Telephone'] ?? '') . ".", 8),
array('9', 'Emergency Contact Step', 'Client Mobile App', 'Emergency contact provides information',
"1. Open the Client Mobile App or contact flow.\n2. Log in as " . $secondaryName . ".\n3. Open Provide Information.\n4. For Question: \"Have you provided information about " . $clientName . "?\", choose \"Yes\".\n5. In notes, enter: TEST: Emergency contact provided last known details.\n6. Submit the response.",
"The system creates an admin review step after the emergency contact provides information.", "Check emergency contact email at " . ($secondary['Email'] ?? '') . ". Check emergency contact text message at " . ($secondary['Telephone'] ?? '') . ".", 9),
array('10', 'Admin Step', 'Admin Website', 'Admin reviews and closes safe',
"1. In the Admin Website, open Review PI Report & Coordinate.\n2. For Question: \"Need info from " . $secondaryName . "?\", choose \"No\".\n3. For Question: \"Has " . $clientName . " been found?\", choose \"Yes - " . $clientName . " Found Safe\".\n4. In notes, enter: TEST: " . $clientName . " found safe.\n5. Click Submit.",
"The system creates closure steps for Admin and PI, plus case resolution steps for the Client and Emergency Contact.", "Resolution notifications should be created for the client, emergency contact, and assigned PI where applicable. Check text messages on the phone number for each role.", 7),
array('11', 'Admin Step', 'Admin Website', 'Final admin close',
"1. In the Admin Website, open Case Closed.\n2. For Question: \"Final resolution for " . $clientName . "?\", choose \"" . $clientName . " Found Safe\".\n3. In notes, enter: TEST: Closing case as found safe.\n4. Click Submit.",
"The DASH case should move to Completed after the final admin close step succeeds.", "Final resolution emails should go to the client, emergency contact, and assigned PI where applicable. Check text messages on the phone number for each role.", 11),
array('12', 'Client Step', 'Client Mobile App', 'Client confirms final resolution',
"1. Open the Client Mobile App.\n2. Log in as " . $clientName . ".\n3. Open Case Resolution.\n4. For Question: \"Acknowledge case resolution for " . $clientName . "?\", choose \"Acknowledge\".\n5. Submit the response.",
"The client can acknowledge the final case resolution.", "Check final client resolution email at " . $clientEmail . ". Check final client text message at " . $clientPhone . ".", 13),
array('13', 'PI Step', 'PI Mobile App', 'PI confirms case closed',
"1. Open the PI Mobile App.\n2. Log in as the assigned Private Investigator.\n3. Open Case Closed.\n4. For Question: \"Acknowledge case closure for " . $clientName . "?\", choose \"Acknowledge\".\n5. Submit the response.",
"The Private Investigator can acknowledge that the case has been closed.", "The assigned PI should receive a case closed email and text message at the PI email and phone on file.", 10),
array('14', 'Emergency Contact Step', 'Client Mobile App', 'Emergency contact confirms final resolution',
"1. Open the Client Mobile App or contact flow.\n2. Log in as " . $secondaryName . ".\n3. Open Case Resolution.\n4. For Question: \"Acknowledge case resolution for " . $clientName . "?\", choose \"Acknowledge\".\n5. Submit the response.",
"The emergency contact can acknowledge the final case resolution.", "Check final emergency contact email at " . ($secondary['Email'] ?? '') . ". Check final emergency contact text message at " . ($secondary['Telephone'] ?? '') . ".", 13),
array('15', 'Admin Step', 'Admin Website', 'Optional no-kidnap branch',
"1. Start from a fresh test DASH.\n2. In Kidnap Alert Received, for Question: \"How was the alert received?\", choose \"Tracker Button\".\n3. For Question: \"Did " . $clientName . " respond?\", choose \"Answered\".\n4. For Question: \"Is " . $clientName . " in danger?\", choose \"No\".\n5. Submit.\n6. Open Case Closed.\n7. For Question: \"Final resolution for " . $clientName . "?\", choose \"No Kidnap\".\n8. Submit.",
"The workflow closes without recruiting a Private Investigator.", "Final resolution notifications should be sent to the client and emergency contact where applicable. Check text messages on the phone number for each role.", 11),
array('16', 'Admin Step', 'Admin Website', 'Optional no-response branch',
"1. Start from a fresh test DASH.\n2. In Kidnap Alert Received, for Question: \"How was the alert received?\", choose \"Tracker Button\".\n3. For Question: \"Did " . $clientName . " respond?\", choose \"No Response\".\n4. Leave the question \"Is " . $clientName . " in danger?\" unanswered for this branch.\n5. Submit.\n6. Continue to Contact Primary Contact.\n7. If the primary contact does not respond, for Question: \"Did " . $primaryName . " respond?\", choose \"No Response\" and submit.\n8. Continue to Contact Secondary Contact.\n9. If the secondary contact does not respond, for Question: \"Did " . $secondaryName . " respond?\", choose \"No Response\" and submit.\n10. Continue to Decision: No Contact Made and for Question: \"How do you want to proceed for " . $clientName . "?\", choose \"Assign PI to Search\".",
"The workflow follows contact escalation: Primary Contact, Secondary Contact, then Decision: No Contact Made.", "Primary contact to check: " . $primaryName . " at " . ($primary['Email'] ?? '') . " / " . ($primary['Telephone'] ?? '') . ". Secondary contact to check: " . $secondaryName . " at " . ($secondary['Email'] ?? '') . " / " . ($secondary['Telephone'] ?? '') . ".", 2)
);
}
function PA_DASH_TESTING_M_get_or_create_run($dash)
{
if (empty($dash['DashID'])) {
return 0;
}
list($cnt, $error, $status, $rows) = PA_DASH_TESTING_M_db_rows("
SELECT DashTestRunID
FROM PA_TESTING_DashTestRuns
WHERE DashID = " . intval($dash['DashID']) . "
AND RecordStatus = 0
ORDER BY DashTestRunID DESC
LIMIT 1
");
if ($cnt > 0 && isset($rows[0]['DashTestRunID'])) {
return intval($rows[0]['DashTestRunID']);
}
$insertID = 0;
$query = "
INSERT INTO PA_TESTING_DashTestRuns (
DashID, CaseName, ClientID, ClientDevicesID, DeviceID, TestTitle,
TestStatus, CreatedByAdminID, Insert_DateTime, Update_DateTime, RecordStatus
) VALUES (
" . intval($dash['DashID']) . ",
'" . PA_DASH_TESTING_M_escape($dash['CaseName'] ?? '') . "',
" . intval($dash['ClientID'] ?? 0) . ",
" . intval($dash['ClientDevicesID'] ?? 0) . ",
'" . PA_DASH_TESTING_M_escape($dash['DeviceID'] ?? '') . "',
'DASH Alert Button End-to-End Test',
'In Progress',
0,
NOW(),
NOW(),
0
)";
PACommonDBInsertRecord($query, $insertID, $insertError, $insertStatus);
return intval($insertID);
}
function PA_DASH_TESTING_M_seed_steps($runID, $dash, $contacts)
{
list($cnt, $error, $status, $rows) = PA_DASH_TESTING_M_db_rows("
SELECT DashTestStepID
FROM PA_TESTING_DashTestSteps
WHERE DashTestRunID = " . intval($runID) . "
AND RecordStatus = 0
LIMIT 1
");
if ($cnt > 0) {
return;
}
$steps = PA_DASH_TESTING_M_test_steps($dash, $contacts);
foreach ($steps as $step) {
$insertID = 0;
$query = "
INSERT INTO PA_TESTING_DashTestSteps (
DashTestRunID, StepNumber, RoleType, ProductSurface, StepTitle,
StepInstructions, ExpectedResult, NotificationCheck, SourceTemplateID,
SourceDashStepID, TestStatus, Insert_DateTime, Update_DateTime, RecordStatus
) VALUES (
" . intval($runID) . ",
'" . PA_DASH_TESTING_M_escape($step[0]) . "',
'" . PA_DASH_TESTING_M_escape($step[1]) . "',
'" . PA_DASH_TESTING_M_escape($step[2]) . "',
'" . PA_DASH_TESTING_M_escape($step[3]) . "',
'" . PA_DASH_TESTING_M_escape($step[4]) . "',
'" . PA_DASH_TESTING_M_escape($step[5]) . "',
'" . PA_DASH_TESTING_M_escape($step[6]) . "',
" . intval($step[7]) . ",
0,
'Not Started',
NOW(),
NOW(),
0
)";
PACommonDBInsertRecord($query, $insertID, $insertError, $insertStatus);
}
}
function PA_DASH_TESTING_M_refresh_step_text($runID, $dash, $contacts)
{
$steps = PA_DASH_TESTING_M_test_steps($dash, $contacts);
foreach ($steps as $step) {
PA_DASH_TESTING_M_db_exec("
UPDATE PA_TESTING_DashTestSteps
SET RoleType = '" . PA_DASH_TESTING_M_escape($step[1]) . "',
ProductSurface = '" . PA_DASH_TESTING_M_escape($step[2]) . "',
StepTitle = '" . PA_DASH_TESTING_M_escape($step[3]) . "',
StepInstructions = '" . PA_DASH_TESTING_M_escape($step[4]) . "',
ExpectedResult = '" . PA_DASH_TESTING_M_escape($step[5]) . "',
NotificationCheck = '" . PA_DASH_TESTING_M_escape($step[6]) . "',
SourceTemplateID = " . intval($step[7]) . ",
Update_DateTime = NOW()
WHERE DashTestRunID = " . intval($runID) . "
AND StepNumber = '" . PA_DASH_TESTING_M_escape($step[0]) . "'
AND RecordStatus = 0
");
}
}
function PA_DASH_TESTING_M_update_step_from_post()
{
if (!isset($_POST['DashTestStepID'])) {
return;
}
$allowed = array('Not Started', 'Passed', 'Failed', 'Blocked', 'Fixed');
$stepID = intval($_POST['DashTestStepID']);
$status = $_POST['TestStatus'] ?? 'Not Started';
if (!in_array($status, $allowed)) {
$status = 'Not Started';
}
$testerNotes = PA_DASH_TESTING_M_escape($_POST['TesterNotes'] ?? '');
$failureNotes = PA_DASH_TESTING_M_escape($_POST['FailureNotes'] ?? '');
$fixNotes = PA_DASH_TESTING_M_escape($_POST['FixNotes'] ?? '');
PA_DASH_TESTING_M_db_exec("
UPDATE PA_TESTING_DashTestSteps
SET TestStatus = '" . PA_DASH_TESTING_M_escape($status) . "',
TesterNotes = '" . $testerNotes . "',
FailureNotes = '" . $failureNotes . "',
FixNotes = '" . $fixNotes . "',
Update_DateTime = NOW()
WHERE DashTestStepID = " . intval($stepID) . "
AND RecordStatus = 0
");
}
function PA_DASH_TESTING_M_status_badge($status)
{
$map = array(
'Passed' => 'badge-success',
'Failed' => 'badge-danger',
'Blocked' => 'badge-warning',
'Fixed' => 'badge-info',
'Not Started' => 'badge-light'
);
$class = isset($map[$status]) ? $map[$status] : 'badge-light';
return '' . htmlspecialchars($status) . '';
}
function PA_DASH_TESTING_M_available_steps($testSteps, $currentSteps)
{
$openTemplateIDs = array();
foreach ($currentSteps as $step) {
if (($step['Status'] ?? '') === 'Not Completed') {
$openTemplateIDs[intval($step['DashStepTemplateID'])] = true;
}
}
$ready = array();
foreach ($testSteps as $step) {
$stepNumber = (string)($step['StepNumber'] ?? '');
$templateID = intval($step['SourceTemplateID'] ?? 0);
if ($stepNumber === '1' || $stepNumber === '2' || isset($openTemplateIDs[$templateID])) {
$ready[] = $step;
}
}
return $ready;
}
function PA_DASH_TESTING_M_visible_steps($testSteps, $currentSteps)
{
$available = PA_DASH_TESTING_M_available_steps($testSteps, $currentSteps);
$visible = array();
$nextIncompleteFound = false;
foreach ($available as $step) {
if (($step['TestStatus'] ?? '') === 'Passed') {
$step['CollapsedSuccess'] = true;
$visible[] = $step;
continue;
}
if (!$nextIncompleteFound) {
$step['CollapsedSuccess'] = false;
$visible[] = $step;
$nextIncompleteFound = true;
}
}
return $visible;
}
PA_DASH_TESTING_M_create_tables();
PA_DASH_TESTING_M_migrate_tables();
PA_DASH_TESTING_M_update_step_from_post();
$selectedDashID = isset($_GET['dashID']) ? intval($_GET['dashID']) : 0;
list($dash, $contacts, $currentSteps) = PA_DASH_TESTING_M_load_context($selectedDashID);
$runID = PA_DASH_TESTING_M_get_or_create_run($dash);
if ($runID > 0) {
PA_DASH_TESTING_M_seed_steps($runID, $dash, $contacts);
PA_DASH_TESTING_M_refresh_step_text($runID, $dash, $contacts);
}
list($stepCnt, $stepError, $stepStatus, $testSteps) = PA_DASH_TESTING_M_db_rows("
SELECT *
FROM PA_TESTING_DashTestSteps
WHERE DashTestRunID = " . intval($runID) . "
AND RecordStatus = 0
ORDER BY CAST(StepNumber AS UNSIGNED), DashTestStepID
");
$summary = array('Not Started' => 0, 'Passed' => 0, 'Failed' => 0, 'Blocked' => 0, 'Fixed' => 0);
foreach ($testSteps as $row) {
$summary[$row['TestStatus']] = isset($summary[$row['TestStatus']]) ? $summary[$row['TestStatus']] + 1 : 1;
}
$visibleTestSteps = PA_DASH_TESTING_M_visible_steps($testSteps, $currentSteps);
$configuredAlertEmail = $PASYSCONF["DASH"]["PA_ALERT_EMAIL"] ?? 'Not configured';
$configuredAlertSms = $PASYSCONF["DASH"]["PA_ALERT_SMS"] ?? 'Not configured';
?>
- Pink Angels
- DASH
- Testing M
No DASH test context found. Pass a dashID in the URL or create DASH case PA-20260919-0000260.
Pink Angels alert recipients:
Admin alert email: .
Admin alert SMS: .
Other DASH text messages should be checked on the phone number for the intended role recipient shown in each step.
Showing the next test step that is ready to complete. Steps marked Passed stay visible as collapsed success records.
No ready test steps are waiting for completion.
Current DASH Steps
| DashStepID | Template | Role | Title | Status |
|
|
|
|
|