Can we pass a value generated in a test case to another test case as a input?

Hi Vinh Nguyen,

Thanks for your reply. I tried with the below but it is not working as expected. Please look into it and let me know your opinion.

**Test case A : Script : as follows **

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘https://172.18.1.2/complianceportal/login.aspx’)

WebUI.acceptAlert()

String RandomText = CustomKeywords.‘customKeywordPackage.RandomTextCreator.randomTextCreator’(‘ContentPlaceHolder1_txtAuditName’,
GlobalVariable.PrefixText) — > ( This is To generate the random text and put the value in the Text field )

:

:

:

WebUI.delay(5)

WebUI.acceptAlert()

WebUI.delay(4)

**return RandomText; ------ > Returning the text as Below ( Test case B First step ) **

WebUI.closeBrowser()

Note : Here I am storing the above return value in "Audit Name "

**Test Case B : Script as follows : **

String AuditName = WebUI.callTestCase(findTestCase(‘Audit Scheduling - 003 - Schedule new audit’), [‘AuditName’ : ‘’], FailureHandling.STOP_ON_FAILURE)

:

:

:

WebUI.openBrowser(’’)

:

:

WebUI.setText(findTestObject(‘Audit Mapping/Page_Compliance Portal (2)/textarea_ctl00ContentPlaceHold’), 'AuditName’) ------ > But there instead of the "Audit name ( stored ) text " … the text "Audit name " itself passed to the Text box :frowning:

So could you please help me.