Commit 280ee88
authored
Add support for BrowserStack Load Testing Service (LTS) (#54)
Adds an env-var-gated mode that lets the plugin emit per-test rows
correctly when the user's suite is running on BrowserStack's load-
testing infrastructure (where the test runs against a local Selenium
hub rather than the Automate hub).
src/utils/helper.js
- isLoadTestingSession() + getLtsSessionId() helpers, driven by the
BROWSERSTACK_LTS_SESSION_ID env var (or BROWSERSTACK_LTS=true|1
for local testing).
- getCloudProvider() returns 'browserstack' under LTS so events
flow through the integrations.browserstack.* path.
- getIntegrationsObject() overrides session_id with the LTS env id
and forces product='loadTesting' under LTS.
src/testObservability.js
- getProductMapForBuildStartCall() sets automate=false + lts=true
under LTS so build.source aligns with the LTS contract.
All LTS code paths are gated on helper.isLoadTestingSession().
Non-LTS Nightwatch runs see zero behavior change.1 parent 99c7cb4 commit 280ee88
2 files changed
Lines changed: 51 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
900 | 906 | | |
901 | 907 | | |
902 | | - | |
| 908 | + | |
903 | 909 | | |
904 | 910 | | |
905 | 911 | | |
906 | 912 | | |
907 | | - | |
| 913 | + | |
| 914 | + | |
908 | 915 | | |
909 | 916 | | |
910 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
45 | 65 | | |
46 | 66 | | |
47 | 67 | | |
| |||
742 | 762 | | |
743 | 763 | | |
744 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
745 | 776 | | |
746 | 777 | | |
747 | 778 | | |
| |||
768 | 799 | | |
769 | 800 | | |
770 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
771 | 811 | | |
772 | 812 | | |
773 | | - | |
| 813 | + | |
774 | 814 | | |
775 | 815 | | |
776 | 816 | | |
777 | 817 | | |
778 | | - | |
| 818 | + | |
779 | 819 | | |
780 | 820 | | |
781 | 821 | | |
| |||
0 commit comments