TC1:
String u = WebUI.getAttribute(findTestObject(‘SignInPage/txt_username’), ‘placeholder’)
WebUI.setText(findTestObject(‘SignInPage/txt_username’), username)
String p = WebUI.getAttribute(findTestObject(‘SignInPage/txt_password’), ‘placeholder’)
CustomKeywords.‘com.fcm.utilities.ClearTextField.ClearText’(findTestObject(‘SignInPage/txt_password’))
WebUI.setText(findTestObject(‘SignInPage/txt_password’), password)
WebUI.click(findTestObject(‘SignInPage/btn_signinButton’))
Map Map_TC1 = [:]
Map_TC1.put(‘inlinetextofusername’,u)
Map_TC1.put(‘inlinetextofpassword’,p)
return Map_TC1;
**TC2: **
Map TC_1_called = WebUI.callTestCase(findTestCase(‘01_UserManagement/Login’), [(‘username’) : ‘Anna’, (‘password’) : ‘Analyst_2017’,(‘inlinetextofusername’):’’,(‘inlinetextofpassword’):’’], FailureHandling.STOP_ON_FAILURE)
println(TC_1_called[inlinetextofusername])
println(TC_1_called[inlinetextofpassword])
**Log: **
12-11-2017 04:31:40 PM - [START] - Start action : Statement - Map_TC1 = [:]
12-11-2017 04:31:40 PM - [END] - End action : Statement - Map_TC1 = [:]
12-11-2017 04:31:40 PM - [START] - Start action : Statement - Map_TC1.put(“inlinetextofusername”, u)
12-11-2017 04:31:40 PM - [END] - End action : Statement - Map_TC1.put(“inlinetextofusername”, u)
12-11-2017 04:31:40 PM - [START] - Start action : Statement - Map_TC1.put(“inlinetextofpassword”, p)
12-11-2017 04:31:40 PM - [END] - End action : Statement - Map_TC1.put(“inlinetextofpassword”, p)
12-11-2017 04:31:40 PM - [START] - Start action : Statement - return Map_TC1
12-11-2017 04:31:40 PM - [END] - End action : Statement - return Map_TC1
12-11-2017 04:31:40 PM - [ERROR] - Test Cases/01_UserManagement/Logout FAILED because (of) Variable ‘inlinetextofusername’ is not defined for test case.
12-11-2017 04:31:41 PM - [END] - End Test Case : Test Cases/01_UserManagement/Logout
can you please correct me the usage?