Hi,
I tried to script my tests with Junit/Test NG annotations but i failed.I want to run my single script for multiple test data like we do with @DataProvider annotation but i failed.
When i try to use any of the Junit/Test NG annotations like @Test.I see warning message as “The Test Case has no step to run.Please add some steps before execution.”
Below is my sample script.
@Test
public static void Login(){
try{
WebUI.openBrowser(url)
WebUI.waitForElementClickable(findTestObject(‘Object Repository/Page_Log In - Catalyst Insight/Login_button’), 10)
WebUI.setText(findTestObject(‘Object Repository/Page_Log In /Login_username’),username, FailureHandling.STOP_ON_FAILURE)
WebUI.setText(findTestObject(‘Object Repository/Page_Log In /Login_Password’),password, FailureHandling.STOP_ON_FAILURE)
WebUI.click(findTestObject(‘Object Repository/Page_Log In /Login_button’), FailureHandling.STOP_ON_FAILURE)
//WebUiBuiltInKeywords.waitForElementPresent(findTestObject(‘Object Repository/Page_Select A Site /CaseList_Createsite’), 8)
WebUiBuiltInKeywords.verifyElementPresent(findTestObject(‘Object Repository/Page_Select A Site/CaseList_Createsite’), 10)
}
catch(Exception a){
System.out.println("exception occured "+a.getMessage())
}
WebUI.closeBrowser()}
Can you please guide me? I might be missing something here.
Thanks in advance.