Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
43 views

Package Import Static Import: Multiplepkg Org - Testng.Assert - Assertequals Org - Testng.Assert

This document contains code for two test methods within a test class. The first test method, loginFB, prints a message and contains several commented out assertion statements that validate strings, integers, and exceptions. The second test method, loginEmail, simply prints a message.

Uploaded by

Mallikarjun Rao
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Package Import Static Import: Multiplepkg Org - Testng.Assert - Assertequals Org - Testng.Assert

This document contains code for two test methods within a test class. The first test method, loginFB, prints a message and contains several commented out assertion statements that validate strings, integers, and exceptions. The second test method, loginEmail, simply prints a message.

Uploaded by

Mallikarjun Rao
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

package MultiplePkg;

import static org.testng.Assert.assertEquals;

import org.testng.Assert;

//import org.testng.SkipException;
import org.testng.annotations.Test;

public class multpleClass {

@Test
public void loginFB()
{
System.out.println("login by FaceBook");

//throw new SkipException("FB Login will be skipped");

//Assert.assertEquals("bmr","bmr1");
//Assert.assertEquals(1, 3);

//Assert.assertTrue(3<1);

//try
// {
// Assert.assertEquals("bmr", "bmr1");
//}
//catch(Throwable T)
// {
// System.out.println(T);
//}

//Assert.assertEquals(1,2);
//try{
//Assert.assertThrows();
//}catch(Throwable t)
//{
// System.out.println(t);
//}

@Test

public void loginEmail()


{
System.out.println("login by Email");
}
}

You might also like