Skip to content

Commit

Permalink
Merge pull request #3074 from catchpoint/AZU186098
Browse files Browse the repository at this point in the history
Limit Web Page Script to 25 steps
  • Loading branch information
claud-io authored Jul 15, 2024
2 parents b7d6765 + 1acbbb4 commit eaae4dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/local/wptconfig/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ allowNonFQDN=1
enable_agent_processing=1

; Sets the maximum number of navigates in a script
maxNavigateCount=20
maxNavigateCount=25

; Selects the metric to use for the median run (defaults to loadTime)
medianMetric=SpeedIndex
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ allowNonFQDN=0
enable_agent_processing=1

; Sets the maximum number of navigates in a script
maxNavigateCount=20
maxNavigateCount=25

; Selects the metric to use for the median run (defaults to loadTime)
; medianMetric=SpeedIndex
Expand Down Expand Up @@ -318,4 +318,4 @@ paid_priority=0
user_priority=2
api_priority=5
bulk_priority=8
friendly_urls=1
friendly_urls=1
5 changes: 1 addition & 4 deletions www/runtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2072,10 +2072,7 @@ function ValidateScript(&$script, &$error)

$test['navigateCount'] = $navigateCount;

$maxNavigateCount = Util::getSetting("maxNavigateCount");
if (!$maxNavigateCount) {
$maxNavigateCount = 20;
}
$maxNavigateCount = Util::getSetting("maxNavigateCount", 25);

if (!$ok) {
$error = "Invalid Script (make sure there is at least one navigate command and that the commands are tab-delimited). Please contact us if you need help with your test script.";
Expand Down
2 changes: 1 addition & 1 deletion www/settings/settings.ini.sample
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ allowNonFQDN=0
enable_agent_processing=1

; Sets the maximum number of navigates in a script
maxNavigateCount=20
maxNavigateCount=25

; Selects the metric to use for the median run (defaults to loadTime)
; medianMetric=SpeedIndex
Expand Down

0 comments on commit eaae4dc

Please sign in to comment.