Comments (3)
We already have automated ui testing in the reference app:
https://github.com/devkeydet/CrmAsyncRequestResponseSampleV2/tree/master/UIAutomationTests
However, there is a known issue with https://github.com/Microsoft/EasyRepro/ when executing a headless test with the phantomjs driver:
devkeydet/CrmAsyncRequestResponseSampleV2#23
Once the issue is resolved, we'll update one of the release builds to show how to run the ui automation test.
from dyn365-ce-devops.
Two options:
-Spin up our own agent with a browser installed and use the browser driver (adds complexity)
-Wait until phantomjs is working
from dyn365-ce-devops.
@devkeydet I believe there's another working option you can use today.
Microsoft.Dynamics365.UIAutomation.Browser.BrowserOptions
now supports headless for Chrome, which works in a hosted build agent:
public static class TestSettings
{
public static BrowserOptions Options { get { return _options; } }
private static BrowserOptions _options = new BrowserOptions
{
BrowserType = BrowserType.Chrome,
PrivateMode = true,
FireEvents = true,
Headless = true
};
}
Then in your build definition, just install Chrome before running your UI tests by running a PowerShell script task:
$Path = $env:TEMP;
$Installer = "chrome_installer.exe";
Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer;
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item $Path\$Installer
from dyn365-ce-devops.
Related Issues (20)
- Update solution package version as part of build
- update to spkl 1.0.178.1 HOT 1
- BUILD: Update .NET assembly versions to match solution package
- Demonstrate building/releasing a "clone to patch" scenario
- Make buildNumberFormat 1.0.0$(Rev:.r)
- Update builds to produce both managed/unmanaged solutions
- Update Patch Release to use VSTS task to disable admin mode
- Update Primary Build to use runsettings for Code Coverage
- Replace function app with logic app
- make backupLabel generic
- Create a high level overview video...
- build breaks since adding automated UI tests
- minify javascript before packaging solution HOT 1
- Update UIAutomation with latest nuget packages
- Show a more simplified Azure deployment
- CRM Package Deployer Error HOT 1
- Error finding solution.xml file path HOT 2
- Add an example for deploying a Power BI report
- Mapping Plugin/WebResource code
- Failed to save Primary Release
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dyn365-ce-devops.