Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Assert strings against a file content
Assert strings against a file content [message #1701665] Tue, 14 July 2015 15:08 Go to next message
Eclipse UserFriend
Hi there,


I can not find a way to do this in a clean way, so I was wandering if anyone has any suggestion.

I have a functionality that based in some metadata creates a file in different formats: XML, JSON, CSV.

I want to create tests to assert how these files are created, so here is my issue: I have the expected result in a file in a Folder context, then I want to use a procedure to get the text from the control and assert against the file content

E.g:
proc "validate-mocked-file" [val fileContent] 
{ 
       get-view "Transform Message" | get-text-viewer | get-property text | equals $fileContent
}


But I couldn't find any way to read an XML file and use it as a parameter for the procedure. I believe there are no readers for different file types but CSV. I wanted to check if anyone knows if there is a better way to do this than paste the whole XML escaped in the Test script (which is very ugly).

Is this possible?
Re: Assert strings against a file content [message #1701983 is a reply to message #1701665] Fri, 17 July 2015 05:28 Go to previous message
Eclipse UserFriend
Hi Matias,

Unfortunately, RCPTT can't parse XML file for now, sorry.

Kind regards,
Ulyana.
Previous Topic:[Not an Issue] Test cases runs correctly on IDE but fails on the test runner
Next Topic:How to Calculate the duration of a command
Goto Forum:
  


Current Time: Sat Jun 21 17:35:04 EDT 2025

Powered by FUDForum. Page generated in 0.04656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top