Test Orchestration Integration For Nightwatch SDK#41
Merged
garg3133 merged 11 commits intonightwatchjs:mainfrom Oct 28, 2025
Merged
Test Orchestration Integration For Nightwatch SDK#41garg3133 merged 11 commits intonightwatchjs:mainfrom
garg3133 merged 11 commits intonightwatchjs:mainfrom
Conversation
- Added helpers.js for utility functions related to test orchestration. - Created index.js to serve as the main entry point for the orchestration module. - Introduced orchestrationUtils.js for managing orchestration settings and operations. - Developed requestUtils.js for handling API requests to the BrowserStack orchestration API. - Implemented testOrchestrationHandler.js to manage test orchestration operations. - Added testOrchestrationIntegration.js for integrating orchestration with Nightwatch. - Created testOrderingServer.js to handle communication with the BrowserStack server for test ordering. - Updated requestHelper.js to improve error handling for API requests.
…ved glob pattern matching
…h for cucumber tests
Dave3130
reviewed
Oct 22, 2025
nightwatch/globals.js
Outdated
|
|
||
| Logger.info(`Test orchestration recommended order change:`); | ||
| Logger.info(`Original: ${allTestFiles.join(', ')}`); | ||
| Logger.info(`Optimized: ${orderedFiles.join(', ')}`); |
Dave3130
reviewed
Oct 23, 2025
src/testorchestration/helpers.js
Outdated
| /** | ||
| * Check and truncate VCS info if needed | ||
| */ | ||
| function checkAndTruncateVcsInfo(gitMetaData) { |
Dave3130
reviewed
Oct 23, 2025
src/testorchestration/helpers.js
Outdated
| /** | ||
| * Format git author information | ||
| */ | ||
| function gitAuthor(name, email) { |
Dave3130
reviewed
Oct 23, 2025
| nodeIndex: parseInt(process.env.BROWSERSTACK_NODE_INDEX || '0', 10), | ||
| totalNodes: parseInt(process.env.BROWSERSTACK_TOTAL_NODE_COUNT || '1', 10), | ||
| hostInfo: getHostInfo(), | ||
| frameworkName: "nightwatch" |
Dave3130
reviewed
Oct 23, 2025
| } catch (e) { | ||
| // Enhanced error logging for better diagnosis | ||
| if (e.code === 'EPIPE') { | ||
| Logger.error(`❌ Network connection error (EPIPE) when calling orchestration API`); |
… error logging in RequestUtils
… for improved Git metadata handling
Dave3130
approved these changes
Oct 23, 2025
garg3133
approved these changes
Oct 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.