Generate expect in test script by loggingProxy