def verify_int_var(): actualoutput = automationassets.get_automation_variable(IntVariableName) if actualoutput == expectedIntVariableValue: print "Get UnEncrypted Variable Successful - Int" else: print "ERROR: Get UnEncrypted Variable Failed - Int" updatedintvariableval = 99000 automationassets.set_automation_variable(IntVariableName, updatedintvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(IntVariableName) if actualoutput == updatedintvariableval: print "Update UnEncrypted Variable Successful - Int" else: print "ERROR: Update UnEncrypted Variable Failed - Int" automationassets.set_automation_variable(IntVariableName, expectedIntVariableValue)
def verify_bool_var(): actualoutput = automationassets.get_automation_variable(BoolVariableName) if actualoutput == expectedBoolVariableValue: print "Get UnEncrypted Variable Successful - Bool" else: print "ERROR: Get UnEncrypted Variable Failed - Bool" updatedboolvariableval = True automationassets.set_automation_variable(BoolVariableName, updatedboolvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(BoolVariableName) if actualoutput == updatedboolvariableval: print "Update UnEncrypted Variable Successful - Bool" else: print "ERROR: Update UnEncrypted Variable Failed - Bool" automationassets.set_automation_variable(BoolVariableName, expectedBoolVariableValue)
def verify_string_var(): actualoutput = automationassets.get_automation_variable(StringVariableName) if actualoutput == expectedStringVariableValueUnEn: print "Get UnEncrypted Variable Successful - String" else: print "ERROR: Get UnEncrypted Variable Failed - String" updatedstrvariableval = "Updated string variable value" automationassets.set_automation_variable(StringVariableName, updatedstrvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(StringVariableName) if actualoutput == updatedstrvariableval: print "Update UnEncrypted Variable Successful - String" else: print "ERROR: Update UnEncrypted Variable Failed - String" automationassets.set_automation_variable(StringVariableName, expectedStringVariableValueUnEn)
def verify_enc_unspecified_var(): actualoutput = automationassets.get_automation_variable(UnspecifiedVariableNameEn) if actualoutput == ExpectedUnspecifiedVariableValEn: print "Get Encrypted Variable Successful - Unspecified" else: print "ERROR: Get Encrypted Variable Failed - Unspecified" updatedunspecifiedvariableval = "Enc Unspecified value updated" automationassets.set_automation_variable(UnspecifiedVariableNameEn, updatedunspecifiedvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(UnspecifiedVariableNameEn) if actualoutput == updatedunspecifiedvariableval: print "Update Encrypted Variable Successful - Unspecified" else: print "ERROR: Update Encrypted Variable Failed - Unspecified" automationassets.set_automation_variable(UnspecifiedVariableNameEn, ExpectedUnspecifiedVariableValEn)
def verify_enc_bool_var(): actualoutput = automationassets.get_automation_variable(BoolVariableNameEn) if actualoutput == ExpectedBoolVariableValEn: print "Get Encrypted Variable Successful - Bool" else: print "ERROR: Get Encrypted Variable Failed - Bool" updatedboolvariableval = False automationassets.set_automation_variable(BoolVariableNameEn, updatedboolvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(BoolVariableNameEn) if actualoutput == updatedboolvariableval: print "Update Encrypted Variable Successful - Bool" else: print "ERROR: Update Encrypted Variable Failed - Bool" automationassets.set_automation_variable(BoolVariableNameEn, ExpectedBoolVariableValEn)
def verify_enc_int_var(): actualoutput = automationassets.get_automation_variable(IntVariableNameEn) if actualoutput == ExpectedIntVariableValEn: print "Get Encrypted Variable Successful - Int" else: print "ERROR: Get Encrypted Variable Failed - Int" updatedintvariableval = 8877 automationassets.set_automation_variable(IntVariableNameEn, updatedintvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(IntVariableNameEn) if actualoutput == updatedintvariableval: print "Update Encrypted Variable Successful - Int" else: print "ERROR: Update Encrypted Variable Failed - Int" automationassets.set_automation_variable(IntVariableNameEn, ExpectedIntVariableValEn)
def verify_unspecified_var(): actualoutput = automationassets.get_automation_variable(UnspecifiedVariableName) if actualoutput == expectedUnspecifiedVariableValue: print "Get UnEncrypted Variable Successful - Unspecified" else: print "ERROR: Get UnEncrypted Variable Failed - Unspecified" updatedunspecifiedvariableval = "Updated unspecified variable" automationassets.set_automation_variable(UnspecifiedVariableName, updatedunspecifiedvariableval) time.sleep(60) actualoutput = automationassets.get_automation_variable(UnspecifiedVariableName) if actualoutput == updatedunspecifiedvariableval: print "Update UnEncrypted Variable Successful - Unspecified" else: print "ERROR: Update UnEncrypted Variable Failed - Unspecified" automationassets.set_automation_variable(UnspecifiedVariableName, expectedUnspecifiedVariableValue)