Anatomy of Logging in Appium
When the Appium host runs there is oftentimes a bewildering current of logs, afford information about the automation in process, but the details are often obscure. The first lines of the log announce the version of Appium, and the address it is running on: Further, if you have commence the host with anyspecial flags, including default desired capacity they will also be noted hither, to facilitate with see the environs that is being run: This information is priceless for providing context to the that will be run. In particular, different versions of Appium will have different capability and topic, so knowing what version is running is necessary to begin to make any determination of what is locomote on in any run. For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users. While session creation involves a complicated regalia of operations to get the environment set up and the application under test run, the beginning of the logs for a command to create the session provides basic information about the session. In particular, thedesired capacity, along with any nonpayment capability are listed. It is often useful to check that what was intended to be request was really received by the Appium server, since it is the capabilities listed hither that will be acted upon for the automation session. Appium is aRESTserver, accepting incoming HTTP requests, performing the activity requested, and returning a solvent of some variety. In the Appium server logs, each such incoming request is delineated by a line indicating the request, and a line indicating the response. In between these are the details of the execution of the requested command: On the client-side errors are usually helpful, there is usually more info to be found in the logarithm. Usually, the errors will be at the end of the automation session, but sometimes the session can preserve, and the error logs will be earlier. So, the 1st pace is to identify the bid where the error happened. As we hold already seen, each bid is marked by[HTTP]-- & gt; and [HTTP]& lt; --. Within these markers is the details of the execution of the dictation, including any error output. Let & # x27; s take a look at a concrete model: In this abridged set of log, the user has attempted to start a session apply the Android driver and has been met with an error. In this suit it looks like the fault occur during Appium & # x27; s attempt to stop and clear the AUT in readying for the session. Here the mistake gives us two important pieces of information: In this case, Appium was trying to run anadb command (adb shell am force-stop), with argument that have been included in the erroneousness text. And what happened? It was met with an Android system error about permission. At this point, we have everything we need to troubleshoot locally. We can run theadbbidding that Appium attempt to run, for example, and determine whether we can procreate the issue outside of Appium. If so, we can so seek recourse through a helpful Android-specific forum, or from other Appium users who might have run into the same problem. If the command can be run successfully from the command line, then it may be we have uncover a bug in Appium, and it should be describe as aGitHub topic. (If you & # x27; re rummy, in this case the user was able to reproduce the problem outside of Appium, so it appeared to be related to the specific device manufacturer & # x27; s security model). Obviously, this is one of many, many examples that could have be given, but it illustrate the nucleus point that, when faced with an error, the logs can assist supply more information that facilitate a local repro endeavor or aid the Appium team understand what could be proceed wrong. No number should ever be subject to the Appium issue tracker without a complete set of logs! While the default logging yield is often enough, and if you are opening anissue on GitHubto get help with a problem, the more info the better, there areserver flagsprovided to change the logging behavior of the Appium waiter. Lead, Content Marketing, HeadSpin Inc. Piali is a dynamic and results-driven Content Marketing Specialist with 8+ years of experience in craft engaging narratives and market collateral across diverse industries. She excels in collaborating with cross-functional teams to develop innovative substance strategy and deliver compelling, authentic, and impactful content that resonates with quarry audiences and enhances make authenticity. Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed. Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts..png)



Anatomy of Logging in Appium
AI-Powered Key Takeaways
Server Startup
Check out:
$ appium [Appium] Welcome to Appium v1.8.0-beta3 (REV 40e40975ebd3593d08c3f83de2546258f7ddf11d) [Appium] Appium REST http interface hearer started on 0.0.0.0:4723$ appium -- address 172.19.131.113 -- porthole 8000 -- default-capabilities ' {`` showIOSLog '': true} ' [Appium] Welcome to Appium v1.8.0-beta3 (REV 40e40975ebd3593d08c3f83de2546258f7ddf11d) [Appium] Non-default server args: [Appium] address: 172.19.131.113 [Appium] port: 8000 [Appium] defaultCapabilities: {[Appium] showIOSLog: true [Appium]} [Appium] Default capability, which will be added to each request unless overridden by desired capableness: [Appium] showIOSLog: true [Appium] Appium REST http interface listener start on 172.19.131.113:8000Session Creation
Also check:
[Appium] Creating new XCUITestDriver (v2.68.0) session [Appium] Capabilities: [Appium] app: /Users/isaac/apps/UICatalog-iphonesimulator.app [Appium] platformName: iOS [Appium] platformVersion: 11.3 [Appium] deviceName: iPhone 6 [Appium] automationName: XCUITest [Appium] noReset: true [Appium] maxTypingFrequency: 30 [Appium] clearSystemFiles: true [Appium] showXcodeLog: false [debug] [BaseDriver] [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {`` app '': '' /Users/isaac/code/a ...Appium Commands
Recommended post:
[HTTP] -- > GET /wd/hub/status {} [debug] [MJSONWP] Calling AppiumDriver.getStatus () with args: [] [debug] [MJSONWP] Responding to customer with driver.getStatus () result: {`` build '': {`` version '': '' 1.8.0-beta3 '', '' revision '': '' 30e7b45bdc5668124af33c41492aa5195fcdf64d ''}} [HTTP]<-- GET /wd/hub/status 200 121 ms - 126
Investigating Errors
Read:
[HTTP] -- > POST /wd/hub/sessionAlso read:
Check:
Server Flags for Changing the Logging Output
2018-03-15 13:17:58:663 - [Appium] Welcome to Appium v1.8.0-beta3 (REV 30e7b45bdc5668124af33c41492aa5195fcdf64d) 2018-03-15 13:17:58:664 - [Appium] Non-default server args: 2018-03-15 13:17:58:665 - [Appium] logTimestamp: true 2018-03-15 13:17:58:732 - [Appium] Appium REST http interface hearer start on 0.0.0.0:4723Piali Mazumdar
Anatomy of Logging in Appium
4 Parts
-1280X720-Final-2.jpg)
Regression Intelligence virtual guidebook for forward-looking users (Part 3)
-1280X720-Final-2.jpg)
Regression Intelligence practical guide for advanced user (Part 4)
Discover how HeadSpin can authorize your business with superior prove potentiality







Discover how HeadSpin can empower your business with superior screen capabilities
Discover how HeadSpin can empower your business with superior test capabilities
Connet Now


Automate This With SUSA
Test Your App Autonomously







.png)












