Unable to Instrument the Android App

Mobile Testing, Android App Testing.
Subhadip
Posts: 9
Joined: Fri Feb 01, 2019 8:57 am

Unable to Instrument the Android App

Post by Subhadip » Fri Feb 01, 2019 9:00 am

Hello Everyone,

I am trying to instrument an android app, and getting an error.
Can someone help on this?

USing Ranorex Studio : 8.3.2, RxService App 2.0.3.

Let me know if you need more details.

Error:

System.IO.FileNotFoundException: Could not find file 'C:\Users\subhadipg\AppData\Local\RanorexStudio8\RxEnv\Android\temp\decomp\AndroidManifest.xml'.
File name: 'C:\Users\subhadipg\AppData\Local\RanorexStudio8\RxEnv\Android\temp\decomp\AndroidManifest.xml'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Threading.CompressedStack.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.ProcessManifest(String manifestPath, DecompileInfo& dcInfo, InstrumentApkOptions instrumentOptions)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.DecompileApkFile(String apkFilePath, Boolean showProcessWindows, IPathService pathService, InstrumentApkOptions deployOptions)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.Instrument(String apkFilePath, InstrumentApkOptions deployOptions, BackgroundWorker bgw)
at Ranorex.Plugin.Mobile.RxIntegration.Instrumentation.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)

Thank you,
Subhadip

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Unable to Instrument the Android App

Post by odklizec » Mon Feb 04, 2019 9:30 am

Hi,

At first, try to delete entire folder and try it again:
C:\Users\subhadipg\AppData\Local\RanorexStudio8\RxEnv\Android\temp\decomp\
Also, please make sure you have enough rights, ideally, start Ranorex as Administrator.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Subhadip
Posts: 9
Joined: Fri Feb 01, 2019 8:57 am

Re: Unable to Instrument the Android App

Post by Subhadip » Thu Feb 07, 2019 9:37 am

Thank you,issue was solved by using another APK. looks like had some issues with APK