How To Upgrade Appium From Command Line For Mac

Applies to:Office for Mac, Office 2019 for Mac, Office 2016 for Mac
Microsoft AutoUpdate (MAU) version 3.18 and later includes the msupdate command-line tool. This can be used to start the update process for Microsoft applications produced for Mac, such as Office. The tool is primarily designed for IT administrators so that they have more precise control over when updates are applied. You can download the latest version of MAU from this link.
Discuss.appium.io - this is the Appium community forum, which is a great first place to go for help getting started, or if you think you may have run into a bug. The Appium issue tracker - let the Appium maintainers know here if you think you've found a bug.
msupdate works by sending Apple Events to the MAU daemon. On macOS 10.14 Mojave and later, you may see a privacy prompt when running msupdate for the first time. If you are using an enterprise management tool such as Jamf Pro, you should deploy a Privacy Preferences Policy Control (PPPC) payload to pre-approve access. Samples of such a payload can be downloaded from here.
Use the following steps to start using the tool:
- Open the Terminal application
- Enter
cd /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS
- Run
./msupdate --help
The following options are displayed:
Examples of how to use msupdate
- Display the current configuration parameters for AutoUpdate:
./msupdate --config
- Display the current configuration parameters in machine-readable format:
./msupdate --config --format plist
- List all available updates:
./msupdate --list
- Download and install all available updates:
./msupdate --install
- Download and install the latest updates for Word, Excel, and PowerPoint:
./msupdate --install --apps MSWD2019 XCEL2019 PPT32019
- Download and install a version-specific update for Outlook:
./msupdate --install --apps OPIM2019 --version 16.17.180090901
Application identifiers
The following table lists the applications for Mac supported by AutoUpdate. The identifier is used when specifying the --apps
parameter. When specifying multiple applications on the command-line, separate identifiers with a space.
Application | Latest version1 | 2016 version2 |
---|---|---|
Word | MSWD2019 | MSWD15 |
Excel | XCEL2019 | XCEL15 |
PowerPoint | PPT32019 | PPT315 |
Outlook | OPIM2019 | OPIM15 |
OneNote | ONMC2019 | ONMC15 |
MAU | MSau04 | MSau04 |
OneDrive | ONDR18 | |
Teams | TEAM01 | |
Skype for Business | MSFB16 | |
Remote Desktop | MSRD10 | |
Intune Company Portal | IMCP01 | |
Defender ATP | WDAV00 | |
Edge Canary | EDCN01 | |
Edge Dev | EDDV01 | |
Edge Beta | EDBT01 | |
Edge Stable | EDGE01 |
1 These identifiers are used for Office 2019 for Mac, either a retail or a volume licensed version, and for Office for Mac (from an Office 365 plan) running on macOS version 10.12 (Sierra) or higher.
2 These identifiers are used for Office 2016 for Mac, either a retail or a volume licensed version, and for Office for Mac (from an Office 365 plan) running on macOS version 10.11 (El Capitan) or earlier.
Note
- If an update is pending for MAU itself, that update must be applied before any applications can be updated.
- Identifiers are not case-sensitive when run interactively from the command-line, but use the character casing from the table above when running from a management tool such as Jamf Pro.
Related topics
- Update history and release notes for Office for Mac
Edit this Doc Running Appium from Source
So you want to run Appium from source and help fix bugs and add features?Great! Just fork the project, make a change, and send a pull request! Pleasehave a look at our Style Guide before getting to work.Please make sure the unit and functional tests pass before sending a pullrequest; for more information on how to run tests, keep reading!
Node.js
Appium is written in JavaScript, and run with the Node.js engine. Currentlyversion 6+ is supported. While Node.js can be installed globally on the system,a version manager is highly recommended.* NVM - https://github.com/creationix/nvm* N - https://github.com/tj/n
Your Node.js installation will include the NPM package manager, which Appiumwill need in order to manage dependencies. Appiums supports NPM version 3+.
Setting up Appium from Source
An Appium setup involves the Appium server, which sends messages back and forthbetween your test code and devices/emulators, and a test script, written inwhatever language binding exists that is compatible with Appium. Run aninstance of an Appium server, and then run your test.
The quick way to get started:
Hacking on Appium
Install the appium-doctor tool, and run it to verify all of thedependencies are set up correctly (since dependencies for building Appiumare different from those for simply running it):
Install the Node.js dependencies:
When pulling new code from GitHub, if there are changes to package.json
itis necessary to remove the old dependencies and re-run npm install
:
At this point, you will be able to start the Appium server:
See the server documentationfor a full list of command line arguments that can be used. Columns in text box powerpoint.
Hacking with Appium for iOS
To avoid a security dialog that may appear when launching your iOS apps you'llhave to modify your /etc/authorization
file in one of two ways:
Manually modify the element following
<allow-root>
under<key>system.privilege.taskport</key>
in your/etc/authorization
file to<true/>
.Run the following command which automatically modifies your
/etc/authorization
file for you:sudo npm run authorize-ios
At this point, run:
Now your Appium instance is ready to go. Run node .
to kick up the Appium server.
Hacking with Appium for Android
To work on Android, make sure you have ant
, maven
, and adb
installedand added to system PATH
environment variable. Also you would need theandroid-19+ sdk installed.From your local repo's command prompt, install/run the following:
Set up Appium by running:
Make sure you have one and only one Android emulator or device running, e.g.,by running this command in another process (assuming the emulator
command ison your path):
Now you are ready to run the Appium server via node .
.
Making sure you're up to date
Since Appium uses dev versions of some packages, it often becomes necessary toinstall new npm
packages or update various things. Running npm install
willupdate everything necessary. You will also need to do this when Appium bumpsits version up. Prior to running npm install
it is recommended to removeall the old dependencies in the node_modules
directory:
Different packages
Appium is made up of a number of different packages. While it is often possibleto work in a single package, it is also often the case that work, whether fixinga bug or adding a new feature, requires working on multiple packages simultaneously.
Unfortunately the dependencies installed when running npm install
are those thathave already been published, so some work is needed to link together local developmentversions of the packages that are being worked on.
In the case where one package, A
, depends on another package, B
, the following stepsare necessary to link the two:1. In one terminal, enter into package B
cd B
2. Use NPM link to create symbolic link to this package npm link
3. In another terminal, enter into package A
cd A
4. Use NPM link to link the dependent package B
to the development version npm link B
Now the version of B
that A
uses will be your local version. Remember, however, thatchanges made to the JavaScript will only be available when they have been transpiled, sowhen you are going to test from package A
, run npm run build
in the directory forpackage B
.
Running Tests
First, check out our documentation on running tests ingeneral Make sure yoursystem is set up properly for the platforms you desire to test on.
Once your system is set up and your code is up to date, you can run unit testswith:
You can run functional tests for all supported platforms (after ensuring thatAppium is running in another window with node .
) with:
Debugging Node
This project has multiple launch configurations for running NodeJS code from within VSCode
- Debug: Runs Appium server in debug mode so you can set breakpoints inside VSCode source files
- Attach Debug: Attach to a currently running Appium server
- Example Usage
- From root, run
node --inspect-brk . --port 5555
- Run
attach debug
- Setup breakpoints in VSCode
- From root, run
- Test All: Runs all mocha tests in
test/
. Can setup breakpoints in test code and source code - Test Current File: Runs the currently focused-on mocha file. Fails if it's not valid mocha test
Committing code
Each Appium package installs a pre-commit hook which will run the linter andthe unit tests before the commit is made. Any error in either of these will stopthe commit from occurring.
Once code is committed and a pull requestis made to the correct Appium respository on GitHub, Appium build systemwill run all of the functional tests.