Testing PCF components with Test Engine
Similar to our approach in the Testing canvas components with Test Engine section, we will employ a YAML file capable of modifying the component’s properties. This strategy, when coupled with the ability to interact with other controls, allows us to conduct a comprehensive end-to-end test of the application we aim to evaluate.
Our initial step typically involves configuring the config.dev.json
file. Here’s how:
- Configure the environment ID and tenant ID where the application is situated.
- Point to the path where our YAML file can be found. In this case, since we’re directly using the provided sample file, we must point to the
samples
folder and the accompanying YAML file.Finally, specify the output folder where we wish to store our results, including the
.trx
file, logs, videos, and screenshots.Figure 9.15 shows how the
config.dev.json
file should appear:
Figure 9.15 – The...