-
Couldn't load subscription status.
- Fork 22
Test Orchestration Integration For Nightwatch SDK #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
nightwatch/globals.js
Outdated
|
|
||
| Logger.info(`Test orchestration recommended order change:`); | ||
| Logger.info(`Original: ${allTestFiles.join(', ')}`); | ||
| Logger.info(`Optimized: ${orderedFiles.join(', ')}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this log lines to debug
src/testorchestration/helpers.js
Outdated
| /** | ||
| * Check and truncate VCS info if needed | ||
| */ | ||
| function checkAndTruncateVcsInfo(gitMetaData) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this function ?
src/testorchestration/helpers.js
Outdated
| /** | ||
| * Format git author information | ||
| */ | ||
| function gitAuthor(name, email) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this function ?
| nodeIndex: parseInt(process.env.BROWSERSTACK_NODE_INDEX || '0', 10), | ||
| totalNodes: parseInt(process.env.BROWSERSTACK_TOTAL_NODE_COUNT || '1', 10), | ||
| hostInfo: getHostInfo(), | ||
| frameworkName: "nightwatch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
| } catch (e) { | ||
| // Enhanced error logging for better diagnosis | ||
| if (e.code === 'EPIPE') { | ||
| Logger.error(`❌ Network connection error (EPIPE) when calling orchestration API`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have single error log
… error logging in RequestUtils
… for improved Git metadata handling
No description provided.