Note. I'm not a Java person but Your test is failing because well its failing, your code is not running as you expected. It says expected: but was: So the string from your UI is probably null You're putting the string Karthika in the UI, then your test expects both strings to be adithi but it fails saying it was null Somewhere the text in your UI goes null I think it should be assertEquals(actualvar, whatyouexpect) like assertEquals(name, n1).
Note. I'm not a Java person but.. Your test is failing because well its failing, your code is not running as you expected. It says expected: but was: So the string from your UI is probably null.
You're putting the string Karthika in the UI, then your test expects both strings to be adithi, but it fails saying it was null. Somewhere the text in your UI goes null. I think it should be assertEquals(actualvar, whatyouexpect); like assertEquals(name, n1).
I checked it,it is assertEquals(String expected,String actual); – adithi Mar 26 at 8:55 Its going null or blank somewhere then. When/How is testlogin running? And what does performclick() do?
– gideon Mar 26 at 9:03 I think sendkeys("") is not the method to enter the textbox value. But I cant guess the method to give that. – adithi Mar 26 at 9:05.
Its a simple one and I have done a small mistake in giving input to JUnit. We must give as sendKeys("A D I T H I"); It works now.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.