question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Appium 1.10.0 for IOS - LOG_NO_COLORS Is not working?

See original GitHub issue

The problem

Upgraded to Appium 1.10.0. When Appium Server is started there are ASCII color codes symbols (–> GET ) in report (it causes problem in further automatic testing and reporting):

Start output: [Appium] Welcome to Appium v1.10.0
[Appium] Non-default server args: 
[Appium] address: 127.0.0.1
[Appium] port: 4735 
[Appium] logFile: /Users/cellactqa/Desktop/Logs/appiumServeriPhone6.log 
[Appium] localTimezone: true
[Appium] logNoColors: true 
[Appium] Appium REST http interface listener started on 127.0.0.1:4735 
[HTTP] --> GET /wd/hub/status 
[HTTP] {} 
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: [] 
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.10.0"}} 
[HTTP] <-- GET /wd/hub/status 200 8 ms - 68 
[HTTP] 

The same symbols are printed in the following appium reports, so caused Exceptions while reporting to difido server:

01:20:56 Driver info: io.appium.java_client.ios.IOSDriver 01:21:06 Capabilities {app: /Users/cellactqa/Library/De…, automatioTnName: XCUITesP]t ,Dec 16, 2018 1:21:03 AM jsystem.framework.report.RunnerListenersManager report 01:21:06 SEVERE: Fail to report 01:21:06 java.lang.NumberFormatException: For input string: "9 m " 01:21:06 at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

In older versions we used GeneralServerFlag.LOG_NO_COLORS to solve the problem. How should we now to remove these symbols?

Environment

  • Appium version 1.10.1
  • Last Appium version that did not exhibit the issue: 1.8, 1.9
  • Desktop OS/version used to run Appium: macOS Mojave 10.14.1
  • Node.js version : 8.12.0
  • Mobile platform/version under test: IOS and Android
  • Real device or emulator/simulator:
  • Appium CLI or Appium.app|exe:

Link to Appium logs

https://gist.github.com/lubshilk/9b56511dd91f27081eef25a8b10addaf

Code To Reproduce Issue

		builder = new AppiumServiceBuilder();
		builder.withIPAddress(Host);
		builder.usingPort(Integer.parseInt(strAppiumPort));
		builder.withArgument(GeneralServerFlag.LOCAL_TIMEZONE);
		builder.withArgument(GeneralServerFlag.LOG_NO_COLORS);
		builder.withLogFile(new File(appiumLogLocation));

		// Start the server with the builder
		String output = "";
		try {
			server = AppiumDriverLocalService.buildService(builder);
			server.start();
			output = server.getStdOut();
			report.report("Start output: " + output);
			logger.info("Start output: " + output);
		} catch (Exception e) {
			report.report("Problem to start server: " + e.getMessage(), Reporter.FAIL);
			logger.error("Problem to start server: " + e.getMessage());
			return false;
		}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Dec 17, 2018

It should be, yes. When it is published I will note it here.

0reactions
lock[bot]commented, Jan 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Appium
IOS. Make sure Instruments.app is not open; If you're running the simulator, make sure your actual device is not plugged in ...
Read more >
Once Upgraded my iOS Appium inspector stopped working
Using XCode I am able to access my mobile iOS now, but Appium inspector is failing, its showing “Gathering initial app source” and...
Read more >
appium | Yarn - Package Manager
Appium is an open-source, cross-platform test automation tool for native, hybrid, and mobile web and desktop apps. We support simulators (iOS), ...
Read more >
Select Appium version for your tests | BrowserStack Docs
Start running your tests on the latest iOS minor versions on BrowserStack App Automate. Check out our documentation!
Read more >
appium/CHANGELOG.md - UNPKG
The CDN for appium. ... 10, * Improve string extractions for Android and iOS ... 31, * Fix [bug](https://github.com/appium/appium/issues/11619) calling ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found