Assertion failed


#1

Hello,

image

Why did this assertion failed? Everything looks same.


#2

Hi Sanikidzetemo,

Can you share a snippet of your code? We can’t give a solution by just sending the error message.

Thanks.


#3

Hello , thanks for reply


#4

Hi Sanikidzetemo,

That is so weird. . . .

Could you try this other workaround instead of using just an “assert” keyword:

WebUI.verifyEqual(k, x)
WebUI.verifyMatch(k.toString(), x.toString(), false)

//import junit.framework
import junit.framework.Assert

Assert.assertEquals(k, x)
Assert.assertTrue(k == x)

Hope that helps. . . :slight_smile: