Public Variable

Just define your public variable in Variables tab in Test case and then call it using its name in a script view.