First Test Script
Creating out first test script and understanding it
Creating First Test Script
package com.practice;
import org.testng.Assert;
import org.testng.annotations.Test;
public class FirstTest {
@Test
public void helloworldTest() {
String message = "Hello world!!";
Assert.assertTrue(message.contains("Hello"));
}
@Test
public void failingTestCase() {
String message = "Hello world!!";
Assert.assertTrue(message.contains("hello"));
}
}
Understanding the FirstTest
FirstTestLast updated