Skip to content

Conversation

@himanshu-02
Copy link
Collaborator

No description provided.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

"Windows|11|Edge",
"Windows|11|Chrome",
"Windows|8|Chrome",
#"OS X|Monterey|Safari",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code lines.

#"OS X|Monterey|Safari",
"OS X|Monterey|Chrome",
"OS X|Ventura|Chrome",
#"OS X|Big Sur|Safari",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code lines.

$second = [int]$parts[1]
if ($first -eq 10) { return $true }
if ($first -eq 192 -and $second -eq 168) { return $true }
if ($first -eq 172 -and $second -ge 16 -and $second -le 31) { return $true }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good logic.

Comment on lines +1078 to +1087
try {
# Update Base URL
$files = Get-ChildItem -Path $TARGET -Recurse -Filter *.* -File | Where-Object { $_.Extension -match '\.(java|xml|properties)$' }
foreach ($file in $files) {
$content = Get-Content $file.FullName -Raw -ErrorAction SilentlyContinue
if ($content -and $content -match "https://www\.bstackdemo\.com") {
$content = $content -replace "https://www\.bstackdemo\.com", $CX_TEST_URL
Set-ContentNoBom -Path $file.FullName -Value $content
Log-Line "🌐 Updated base URL in $($file.Name)" $GLOBAL_LOG
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@himanshu-02 - would we need this if we set the CX_TEST_URL in an ENV and use the repos where URL is fetched using the ENV?

Comment on lines +1203 to 1208
if (Test-Path $testFileFull) {
$c = [System.IO.File]::ReadAllText($testFileFull)
$c = $c.Replace("https://bstackdemo.com", $CX_TEST_URL)
Set-ContentNoBom -Path $testFileFull -Value $c
Log-Line "🌐 Updated base URL in tests/bstack-sample-test.py to: $CX_TEST_URL" $GLOBAL_LOG
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@himanshu-02 - would we need this if we set the CX_TEST_URL in an ENV and use the repos where URL is fetched using the ENV?

Comment on lines +1645 to +1647
$LOCAL_FAILURE = $false
$SETUP_FAILURE = $false

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not being used across the board. Let's remove for now, from a consistency perspective.

}
Log-Line "========================================" $GLOBAL_LOG
Log-Line "🎉 All requested tests have been executed!" $GLOBAL_LOG
Log-Line "🔗 View results: https://automate.browserstack.com/ (Web) | https://app-automate.browserstack.com/ (Mobile)" $GLOBAL_LOG
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be only one endpoint:

View results: https://automation.browserstack.com/

@himanshu-02
Copy link
Collaborator Author

thanks for the review @samirans89, will incorporate these changes.

@samirans89 samirans89 merged commit 526a124 into BrowserStackCE:optimisatons Nov 6, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants