Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Whether it is allowed to skip the assertions continue to run when the assertion fails
Whether it is allowed to skip the assertions continue to run when the assertion fails [message #1857152] Fri, 20 January 2023 07:15 Go to next message
panda mkk is currently offline panda mkkFriend
Messages: 38
Registered: April 2022
Member
In our project, we prerecorded a series of operations and added a large number of assertions. We have to modify a large number of assertions every time we execute them. His expected results have been constantly changing

We want to run the script first before the plan starts to ensure that the script other than the assertion can be executed, and modify the assertion at the last time

Is there any method that can skip execution, or leave an error log after execution, but do not stop running the script
Re: Whether it is allowed to skip the assertions continue to run when the assertion fails [message #1857176 is a reply to message #1857152] Sat, 21 January 2023 12:47 Go to previous messageGo to next message
Victor Dulepov is currently offline Victor DulepovFriend
Messages: 9
Registered: December 2014
Junior Member
Can you wrap them in try {} blocks?
Re: Whether it is allowed to skip the assertions continue to run when the assertion fails [message #1857305 is a reply to message #1857176] Mon, 30 January 2023 05:52 Go to previous message
panda mkk is currently offline panda mkkFriend
Messages: 38
Registered: April 2022
Member
Even if the assertion is in the try block, the script will terminate
As shown below, I want to click next even if the assertion fails But terminated at assertion
Is there a problem with my grammar?
get-menu -path "File/Import..." | click
try {
	get-window Import | get-editbox -after [get-label Select] | get-property text | equals "my test impoet" | verify-true
} 
get-window Import | get-button "Next >" | click

[Updated on: Mon, 30 January 2023 05:53]

Report message to a moderator

Previous Topic:AUT Does not Contain a "/configuration" Directory
Next Topic:When pressing the Finish button in the Wizard, it may be pressed multiple times
Goto Forum:
  


Current Time: Fri May 03 16:11:35 GMT 2024

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

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

Back to the top