Not able to open rxtst file

Bug reports.
kapildubey
Posts: 2
Joined: Sat Sep 17, 2016 6:36 am

Not able to open rxtst file

Post by kapildubey » Sat Sep 17, 2016 6:52 am

I recorded test modules after i double click .rxtst file , i got this Exception dialog box. please give support for solving this issue ASAP.

---------------------------
Exception got
---------------------------
Ranorex.RanorexException: TestSuite XML format is invalid. ---> System.ArgumentException: An item with the same key has already been added.

at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

at Ranorex.Core.Testing.TestSuiteEntryXmlDeSerializer.Create(XmlNode node, TestSuiteEntryContainer parent)

at Ranorex.Core.Testing.TestSuite.CreateFromXmlNode(XmlNode node, Boolean captureChangeState)

--- End of inner exception stack trace ---

at Ranorex.Core.Testing.TestSuite.CreateFromXmlNode(XmlNode node, Boolean captureChangeState)

at Ranorex.Core.Testing.TestSuite.DeserializationHelper.CreateFromFile(String fileName, Stream stream, Boolean updateWorkingDir)

at Ranorex.Controls.TestSuiteEditor.LoadTestSuiteFromFile(String fileName, Stream stream, Boolean catchErrors)

at Ranorex.Addins.RxTestSuitePrimaryViewContent.Load(OpenedFile file, Stream stream)

at ICSharpCode.SharpDevelop.OpenedFile.SwitchedToView(IViewContent newView)

at ICSharpCode.SharpDevelop.OpenedFile.ForceInitializeView(IViewContent view)

at ICSharpCode.SharpDevelop.FileServiceOpenedFile.ForceInitializeView(IViewContent view)

at Ranorex.Addins.RxTestSuitePrimaryDisplayBinding.CreateContentForFile(OpenedFile file)

at ICSharpCode.SharpDevelop.FileService.LoadFileWrapper.Invoke(String fileName)

at ICSharpCode.Core.FileUtility.<>c__DisplayClass73_0.<ObservedLoad>b__0()

at ICSharpCode.Core.FileUtility.ObservedLoad(FileOperationDelegate loadFile, String fileName, String message, FileErrorPolicy policy)
---------------------------
OK
---------------------------

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

Re: Not able to open rxtst file

Post by odklizec » Mon Sep 19, 2016 11:50 am

Hi,

I'm afraid, you forgot to mention Ranorex version? Latest supported Ranorex is 6.1 and most probably also 5.4.6.

According to the error, the testsuite file seems to be corrupted. Have you made some manual changes to the rxtst file? Could you please upload the rxtst for review? And finally, have you tried to get the last working version from version control system (I hope you are using one)? If you are not using version control system (SVN, GIT, TFS,...) you should immediately get one. Test automation is SW development like any other. A proper version control system is a "MUST HAVE" for any SW developer!
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

kapildubey
Posts: 2
Joined: Sat Sep 17, 2016 6:36 am

Re: Not able to open rxtst file

Post by kapildubey » Mon Sep 19, 2016 12:47 pm

Hi odklizec,

Thank you for the reply,

I am using Ranorex version 6.0, and using version control. Last checked in file has very few test cases created and it is working. Later i added lot of test cases and did some renaming after test case creation.I believe renaming caused this issue.

Kindly find the attached rxtst file.

Thanks & Regards,
Kapil
Attachments
rxtst.zip
(29.99 KiB) Downloaded 35 times

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

Re: Not able to open rxtst file

Post by odklizec » Mon Sep 19, 2016 1:14 pm

Hi,

Well, it's hard for me to find the cause of error in your rxtst file because it's quite big ;) However, the error message indicates that there is an item with the same key in the file? Exact error: "An item with the same key has already been added".
I don't have any clue how this could happen, maybe there is a bug in 6.0? Unless someone in Ranorex finds a way how to fix your file, you will most probably have to start over with your last working version? And then perform checkin after each few added TCs? Additionally, try to update your Ranorex 6.0 with most recent 6.1, which fixed many 6.0 errors.
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