diff --git a/.harness/Build_LongHe1996_node_js_playwright_browserstack_1739518086366-pr-trigger-input-set-1739518087638.yaml b/.harness/Build_LongHe1996_node_js_playwright_browserstack_1739518086366-pr-trigger-input-set-1739518087638.yaml new file mode 100644 index 0000000..e85ba29 --- /dev/null +++ b/.harness/Build_LongHe1996_node_js_playwright_browserstack_1739518086366-pr-trigger-input-set-1739518087638.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_LongHe1996_node_js_playwright_browserstack_1739518086366-pr-trigger-input-set + identifier: Build_LongHe1996_node_js_playwright_browserstack_1739518086366prtriggerinputset + orgIdentifier: default + projectIdentifier: TestHarnessIntegration + pipeline: + identifier: Build_LongHe1996_node_js_playwright_browserstack_1739518086366 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_LongHe1996_node_js_playwright_browserstack_1739518086366-push-trigger-input-set-1739518089082.yaml b/.harness/Build_LongHe1996_node_js_playwright_browserstack_1739518086366-push-trigger-input-set-1739518089082.yaml new file mode 100644 index 0000000..94b7f69 --- /dev/null +++ b/.harness/Build_LongHe1996_node_js_playwright_browserstack_1739518086366-push-trigger-input-set-1739518089082.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_LongHe1996_node_js_playwright_browserstack_1739518086366-push-trigger-input-set + identifier: Build_LongHe1996_node_js_playwright_browserstack_1739518086366pushtriggerinputset + orgIdentifier: default + projectIdentifier: TestHarnessIntegration + pipeline: + identifier: Build_LongHe1996_node_js_playwright_browserstack_1739518086366 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/pipelines/node-js-playwright-browserstack-1739518070588.yaml b/.harness/pipelines/node-js-playwright-browserstack-1739518070588.yaml new file mode 100644 index 0000000..461189d --- /dev/null +++ b/.harness/pipelines/node-js-playwright-browserstack-1739518070588.yaml @@ -0,0 +1,47 @@ +pipeline: + identifier: Build_LongHe1996_node_js_playwright_browserstack_1739518086366 + name: Build node-js-playwright-browserstack + orgIdentifier: default + projectIdentifier: TestHarnessIntegration + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github_OAuth_1739518057514 + repoName: LongHe1996/node-js-playwright-browserstack + stages: + - stage: + identifier: build + name: build + spec: + caching: + enabled: true + cloneCodebase: true + execution: + steps: + - step: + identifier: installdependencies + name: install dependencies + spec: + command: npm install + timeout: "" + type: Run + - step: + type: Run + name: Browserstack + identifier: Browserstack + spec: + shell: Sh + command: npx browserstack-node-sdk playwright test + envVariables: + BROWSERSTACK_USERNAME: <+secrets.getValue("BROWSERSTACK_USERNAME")> + BROWSERSTACK_ACCESS_KEY: <+secrets.getValue("BROWSERSTACK_ACCESS_KEY")> + imagePullPolicy: Always + timeout: 10m + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + type: CI diff --git a/browserstack.yml b/browserstack.yml index 931609d..d7a6075 100644 --- a/browserstack.yml +++ b/browserstack.yml @@ -3,8 +3,8 @@ # ============================= # Add your BrowserStack userName and accessKey here or set BROWSERSTACK_USERNAME and # BROWSERSTACK_ACCESS_KEY as env variables -userName: YOUR_USERNAME -accessKey: YOUR_ACCESS_KEY +userName: ${BROWSERSTACK_USERNAME} +accessKey: ${BROWSERSTACK_ACCESS_KEY} # ====================== # BrowserStack Reporting @@ -13,13 +13,13 @@ accessKey: YOUR_ACCESS_KEY # Set 'projectName' to the name of your project. Example, Marketing Website projectName: BrowserStack Samples # Set `buildName` as the name of the job / testsuite being run -buildName: browserstack build +buildName: Test Node Web Functional Tests - Build # `buildIdentifier` is a unique id to differentiate every execution that gets appended to # buildName. Choose your buildIdentifier format from the available expressions: # ${BUILD_NUMBER} (Default): Generates an incremental counter with every execution # ${DATE_TIME}: Generates a Timestamp with every execution. Eg. 05-Nov-19:30 # Read more about buildIdentifiers here -> https://www.browserstack.com/docs/automate/selenium/organize-tests -buildIdentifier: '#${BUILD_NUMBER}' # Supports strings along with either/both ${expression} +buildIdentifier: '${BUILD_NUMBER} - #${DATE_TIME}' # Supports strings along with either/both ${expression} # ======================================= # Platforms (Browsers / Devices to test)