2bdedaae10
* Upgrade Nighwatch * Add Microsoft header * Fix yarn.lock |
||
---|---|---|
.. | ||
browser-echo-bot | ||
nightwatch | ||
.env | ||
.gitignore | ||
README.md | ||
browser-tests-build-ci.yml | ||
package.json |
README.md
Description
The library browser-functional-tests is a suite of tests running with Nightwatch and Selenium to check the compatibility of a bot using libraries from BotBuilder-JS with different browsers.
Run the test locally
Note: The tests are configured to run in two-terminals, one for the webpack-dev-server which runs the bot, another for running the tests.
-
In the
botbuilder-js
root directory, open a terminal and runyarn
-
Go to
testing/browser-functional/browser-echo-bot
, open a terminal and run the following commands:yarn
yarn start
This command will start the browser bot usingwebpack-dev-server
.
-
In the
botbuilder-js
root directory, open a new terminal and run the following commands:yarn browser-functional-test $browser
where$browser
is chrome or firefox
Azure Build Pipeline Configuration
The next steps will guide you thought the configuration of a Build pipeline based on YAML file.
Prerequisites
- Azure DevOps organization. You can find documentation here.
- Azure subscription. Required to create and delete Azure resources.
Step by step
-
Create a pipeline using the classic editor, this options allows to us select the YAML file to configure the pipeline.
-
In the section YAML, write the build name, select the build YAML file.
-
In the Section Variables, Add a variable to save the azure subscription value.
Variable: AzureSubscription = "YOUR_AZ_SUBSCRIPTION"
- Save and queue.