From 09e910f06eb58ecf34d541307f8aa4f147c929af Mon Sep 17 00:00:00 2001 From: liyang Date: Mon, 28 Apr 2025 16:37:34 +0800 Subject: [PATCH] + [pipeline] add check url method. --- test/lib/ui.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/lib/ui.php b/test/lib/ui.php index e940ecf117..f2f0ecd6c3 100644 --- a/test/lib/ui.php +++ b/test/lib/ui.php @@ -506,6 +506,22 @@ class tester extends result if(empty($urlList)) return false; $webRoot = $this->getWebRoot(); $result = array(); + foreach($urlList as $url) + { + $this->page->openURL($webRoot . $url); + sleep($wait); + + $errors = $this->page->dom->getErrorsInPage(); + if(!empty($errors)) + { + $checked = new stdclass(); + $checked->url = $url; + $checked->errors = $errors; + + $result[] = $checked; + } + } + return $result; }