Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » verification of partial text (verify only the fixed part of the text)
verification of partial text [message #1731354] Wed, 04 May 2016 14:19 Go to next message
Eclipse UserFriend
I want to use verification for a text with a fixed part and a variable part. The fixed part must always be the same but the variable part changes depending on the test executed. Is there a way to only verify the fixed part of the text?
Re: verification of partial text [message #1732712 is a reply to message #1731354] Thu, 19 May 2016 11:37 Go to previous message
Pete Eremeykin is currently offline Pete EremeykinFriend
Messages: 4
Registered: February 2016
Junior Member
Regexp? You can also use .* (dot star) pattern for arbitrary variable part.
let [val regexp "FixedPart Date: \\d{2}\\.\\d{2}\\.\\d{4}"] {
	emit "FixedPart Date: 09.05.2016" | matches $regexp | verify-true // Ok
	emit "FixedPart Date: 18.03.2014" | matches $regexp | verify-true // Ok
	emit "WrongPart Date: 09.05.2016" | matches $regexp | verify-true // Fails
}
Previous Topic:Get the name of a testcase by ECL command (i.e. by variable substitution)
Next Topic:Error using the drag-action cmd
Goto Forum:
  


Current Time: Thu Apr 25 03:55:26 GMT 2024

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

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

Back to the top