Android's automated testing has many frameworks, where UI Automator is the official black-box UI-related automated test tool (GitHub homepage: Case used in Java, and today we practiced the sample program in the official document, There are still some small problems to be summed up.Environment Preparation:1.JDK (yes, you are not mistaken, basic Android development environment necessary), as well as the corresponding environment variable configuration,
= Context.getpackagemanager () Getlaunchintentforpackage (basic_ Sample_package); //Clear out any previous instances nbsp Intent.addflags (intent.flag_activity_clear_task); context.startactivity (intent); //Wait for the app to appear MDEVICE.WA It (Until.hasobject (by.pkg (basic_sample_package) Depth (0), launch_timeout); }} In the example, the @SdkSuppress(minSdkVersion = 18) statement helps ensure that the test ru
Automator is a Mac comes with a software, many people do not know what to do, in fact, as long as the software it can be your personal small secretary, can help you rename piles of files, the size of a batch of photos to the IPhoto slide show settings, automatic production of iCal events, and other transactions that help streamline your workflow. Next we'll learn how to modify the file name with Automator a
Photographers often use the Address book form when organizing pictures (people often call it "proof sheets"): Place picture thumbnails in rows and columns so that you can preview the pictures in batches. In addition to photographers, the Address book form plays an important role in the day-to-day work of artists, designers, and Ui/ux engineers, greatly facilitating their efforts. Usually we create the Address Book table need to use Photoshop or pixelmator to generate a thumbnail, now with the OS
disadvantage, that is, you can only save screenshots to the desktop. If we take a lot of pictures, it will make the desktop seem very messy. Is there any way to modify the default location of screenshots? Yes. The method is very simple, as long as you enter the following command in "terminal".Defaults Write Com.apple.screencapture locationKillall SystemuiserverWhen you enter a command, replace the "storage location" with a real folder. For example, if you want to store the screenshots folder in
Sometimes it is necessary to display the hidden files in the system, which is not as convenient as the Windows system in MAC (tick the option to operate) and need to be executed in Terminal:localhost:~ mx$ Defaults Write Com.apple.finder appleshowallfiles-bool true //show localhost:~ mx$ killall Finderlocalhost:~ mx$ Defaults write Com.apple.finder appleshowallfiles-bool false //Hide localhost:~ mx$ killall FinderIn order to open the hidden files, so open implementation is too troublesome
Automator instance: Use the shortcut key to quickly open iTerm in the current path1. go to the finder> application or use Spotlight to open: Automator. app2. select new "service" 3. set the service. For more information, see. After setting is complete, save command + s. set the shortcut key. Choose System Preferences> keyboard> service or finder> service preferences, as shown in Figure 5. after setting, you
UI debugging when the programmer is a headache problem: sometimes 1DP, 2dp problems, get speechless (Android development deep Experience)Here is a common debugging tool in the actual development process, can be accurate to each view in the absolute position of the screen (accurate to the specific PX), with such a tool, you can well find the problem in the UI.In fact, in the Ddms view, use the Dump view UI hierarchy for Automator:It's easy to find it, too.1, Android Studio (everyone agreed to), c
1. First Step open Automator.app2. Select New, then select Service3. Service received selected for no inputThen double-click Run AppleScript in the left sidebar4. Enter in edit areaSo the AppleScript is written and saved as Open TerminalSimply change the "Terminal" in the Tell Application "Terminal" in the script to another program name, and you can set up shortcut keys for other programs.5. Set shortcut keysSelect the service in the left column of the keyboard shortcut settings, you can see the
With a few years of fruit, suddenly found in the Internet to download a lot of gadgets in fact, with the system Automator can be easily realized, today to take the official Apple Tutorial to swim once!
Let's get to know this stuff first.
Click the Automator robot's ldquo;Ottordquo; icon to open the Automator from the Launchpad. A new
Through the Services menu in Mac OS X, you can also use the functionality of another application while executing an application. The service in Snow Leopard is more convenient and practical. It displays only the service items associated with the current program or browsing content, not all service items. You can use the service function by right-clicking the mouse button or by holding down the control and pressing the touchpad buttons. You can set your own menu so that it displays only the servi
1. Open in the Finder-----app or via Spotlight: Automator.app2. Select new "Service"3. Set up the service, see, after the setup is complete, command + s Save4. Set the shortcut key, in: System Preferences, keyboard-like services or finder-and service preferences, as follows5. After setting up, you can open the current path in I term by using the shortcut key.Meanwhile, the right-click menu-> Service will add "open in Iterm" serviceAutomator instance:
A script developed for colleagues to quickly switch the environment of the home and Unit
Tell application "system events"
Set proxy_dialog to display dialog "proxy module (Ethernet version):" Buttons {"enable proxy Mode 1", "enable proxy Mode 2 ", "Disable proxy"} default button "enable proxy Mode 1"With title "quickly switch proxy app in Huaxia Fund Development Environment"
Set proxy_interface to button returned of proxy_dialog
End tell
If proxy_i
Boss temporarily let me do a demo, to implement an app to open another app
Requirements: Click on the Open button, have installed the words opened, no installation display installation
Sub-program can no longer display icon on mobile phone page
Parent Program Core Code
public void OnClick (View arg0) {
//TODO auto-generated method stub
Intent Intent = new Intent ();
COM.E
Demand-driven technology, with new requirements, new technologies emerge when old technologies cannot be implemented.General app jump requirements are as follows:1. Jump from your app to someone else's app.2. Jump the system app from your app.3. Let someone else's
I had an egg today. Clear the right-click menu, and then, at some point, use everything's "double-click Path column to open Directory" feature when you find an exception:[Window Title] Everything.exe[content] The file does not have an app associated with it to perform the operation. Please install the app and, if the app is already installed, create an associatio
First, what is the native App?The Native app is the native app, which we generally call the client, is a standalone application developed for different mobile systems, and the most common way to download the Native app is to access the App store, such as the Apple
Editor's note: Do you know all these 3 mainstream applications? Designers in addition to have visual Kung Fu, to different forms of the app should also be clear on the chest, today Baidu classmate wrote a very comprehensive summary, to help you quickly fix 3 kinds of mainstream app design method, with a large wave of lightning rod, with you cleverly skip the app
Editor's note: Do you know all these 3 mainstream applications? Designers in addition to have visual Kung Fu, to different forms of the app should also be clear on the chest, today Baidu classmate wrote a very comprehensive summary, to help you quickly fix 3 kinds of mainstream app design method, with a large wave of lightning rod, with you cleverly skip the app
Absrtact: Do you know all these 3 mainstream applications? Designers in addition to have visual Kung Fu, to different forms of the app should also be clear on the chest, today Baidu classmate wrote a very comprehensive summary, to help you quickly fix 3 kinds of mainstream app design method, with a large wave of lightning rod, with you cleverly skip the app desig
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.