testdriverai 6.1.9 → 6.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.prettierignore
CHANGED
|
@@ -113,6 +113,7 @@ The script accepts parameters as either environment variables or CLI arguments:
|
|
|
113
113
|
export AWS_REGION=us-east-2
|
|
114
114
|
export AMI_ID=ami-•••••••••• # Your TestDriver AMI (contact us to get one)
|
|
115
115
|
export AWS_LAUNCH_TEMPLATE_ID=lt-•••••••••• # From CloudFormation output from step 1
|
|
116
|
+
export RESOLUTION=1440x900 # Change screen resolution if desired (default is 1440x900)
|
|
116
117
|
|
|
117
118
|
/bin/bash ./setup/aws/spawn-runner.sh
|
|
118
119
|
```
|
|
@@ -132,6 +133,23 @@ AWS_REGION=us-east-2
|
|
|
132
133
|
identification in the AWS console.
|
|
133
134
|
</Note>
|
|
134
135
|
|
|
136
|
+
#### Changing Resolution in Lifecycle Files
|
|
137
|
+
|
|
138
|
+
You can also change the resolution before running tests by adding an `exec` command in your `lifecycle/provision.yaml` file:
|
|
139
|
+
|
|
140
|
+
```yaml lifecycle/provision.yaml
|
|
141
|
+
version: 6.0.0
|
|
142
|
+
steps:
|
|
143
|
+
- prompt: set screen resolution
|
|
144
|
+
commands:
|
|
145
|
+
- command: exec
|
|
146
|
+
lang: pwsh
|
|
147
|
+
code: |
|
|
148
|
+
C:\testdriver\SetResolution.ps1 -Width 1920 -Height 1080
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
This approach is useful when you need different resolutions for different test scenarios. See the [Lifecycle Files documentation](/guide/lifecycle) for more information about provision scripts.
|
|
152
|
+
|
|
135
153
|
### CLI Usage
|
|
136
154
|
|
|
137
155
|
Once you have an instance IP, run tests directly:
|