Forum Discussion
Works great! Now I just need to add that last name that is in the Variable for the project at the moment the script runs to the front of this output as one big string and we are good to go. What could I be missing?
Thanks,
Todd2
Team: This code now works as a Unit script
from datetime import datetime
def ContatenationString():
Lastname = "America"
now = datetime.now()
current_time = now.strftime("%H%M%S")
UpdatedLastname = Lastname+current_time
Log.Message(UpdatedLastname)
ContatenationString()
But when the keyword test script executes and the lastname on the form approaches, the name America prints but not UpdatedLastname. What do we got to do to make the lastname text box print the UpdatedLastname value? The keyword test steps have been modified as well as indicated below.
Thank you,
Todd2