[zest-owtf][record-script]Changed code to integrate record functionality