Codekru

expectedExceptionsMessageRegExp attribute of @Test

This post will discuss the expectedExceptionsMessageRegExp attribute of @Test annotation in TestNG. What does this attribute do? According to the documentation – If expectedExceptions was specified, its message must match the regular expression specified in this attribute. So, this means we won’t be able to use this attribute without using expectedExceptions first. Please, read this […]

expectedExceptionsMessageRegExp attribute of @Test Read More »

@Test annotation attributes – expectedExceptions attribute

In this post, we will discuss the expectedExceptions attribute in TestNG. What does the expectedExceptions attribute do? Sometimes, in our test cases, we need to verify whether certain exceptions have occurred. This attribute will help us achieve that. It would take an array of exception classes and check whether that exception has occurred or not.But,

@Test annotation attributes – expectedExceptions attribute Read More »

SQL ORDER BY keyword

SQL “Order by” statement is used for sorting table records either in the ascending or in the descending order at the time of retrieval. SQL ORDER BY Syntax Above we have specified sorting on column1. Here, ASC is used for sorting in ascending order whereas DESC is used for sorting in descending order. If any

SQL ORDER BY keyword Read More »