Join Kevin Ford for an in-depth discussion in this video Set up the App Center CLI, part of Visual Studio App Center for Developers.
- [Narrator] To run automated tests in Visual Studio App Center, we need to install the VSAC command line interface. This is installed by using Note Package Manager. It requires version 6.3 or later. However, there is a problem with Note in version 7.1.0 so if you have that version, you may have to update. To check what version of Note we have, we can simply type in MPM and version. And here we see we have 9.4.0, so we're good.
If we find we don't have Note installed, or we don't have the right version, then we will need to download it. To install the CLI, we can now type sudo NPM install minus g, and the app center CLI. And I'll put in my sudo password, and it's installing. To make sure it installs correctly, we can type appcenter and help.
And there it is. Running from the command lines assumes that we've already created an IPA for our project. If you have not done so, do so now. Let's go to Visual Studio. We want to create an archive for our iOS project. To do that, we click on the iOS project, make sure we have the QA configuration selected, and go to build and archive for publishing. Once the archive is created, we can select it, click sign and distribute, and then we will choose whether we have an ad hoc or an enterprise signing certificate.
Which type you have is depending upon which type you set up inside your Apple developer account. I have an enterprise certificate, so I'm going to select that and click next. I'm going to use the existing identity and provisioning profile, click next, and publish. And where I want to publish this is in my app directory. So to do that I'm going to go out to finder and I'm going to put it right under my source directory. So I'm going to grab that and tab over to Visual Studio and save my VSAC Xamarin IPA.
And then click save. So we've created our IPA, so we're going to hit close, and now we're ready to use the CLI for appcenter to create an automated UI test.
- Adding applications to the VSAC
- Using custom build scripts
- Creating iOS and Android builds
- Creating UI tests
- Automating tests
- Distributing apps
- Examining crash logs and analytics
- Adding push notifications
- Using CodePush for deployments
Skill Level Intermediate
Visual Studio Code for Web Developerswith Joe Marini1h 21m Intermediate
1. Introduction to Visual Studio App Center
2. Creating Builds
3. Test Runs
4. App Distribution
5. Crash Reporting and Analytics
6. Push Notifications
7. Code Push
Set up code push frequency3m 44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.