Framework for testing Microsoft Dynamics 365 for Finance and Operations.
- Reusable functions are defined in
User.js
. - Data for each test case is defined in
Data.xlsx
. Dropdowns.xlsx
contains lists of values for RVL dropdowns.Output.xlsx
is used to persist data between test executions (see SetOutputValue, GetOutputValue common functions below).
The way of test parameterization and reading data from an Excel spreadsheet is described in the docs:
The framework includes a local browser profile located in Profiles\BrowserProfiles
folder. It is a profile for Chrome. The profile to use is specified in User.js
file and is used globally by all test cases:
g_browserLibrary = "Chrome";
You may change the profile in User.js
or pass g_browserLibrary
value from SpiraTest or via command line.
All functions are defined in User.js. Look into this file for details.
Launches Dynamics 365 for Finance and Operations in a browser. Dynamics365FOUrl, UserName, Password must be set in Config.xlsx
Passes through welcome messages: Dive in...
Clicks on the current company in the top right corner of the main page, then expands the dropdown with the list of available companies and selects the required one.
Searches for a page. Use to perform initial navigation.
Waits until "Please wait. We're processing your request" message disappears.
Navigates to a page via menu. Use path to the menu as an argument.
Example:
Modules;Product information management;Products;Released products
Clicks toolbar button. E.g. New, Edit, Delete.
Expands a combobox on a form.
Enters text into a field. Specify field name and text value.
Clicks button on a form.
Writes key/value pair to Output.xlsx
Reads value from Output.xlsx