Understanding Test Script Structure for Reliable Automation Testing