The error message "RT: 30 - Attribute access failed, no attributes set" will be thrown during replay if a BDF script contains the function "AttributeGetString" when no actual Project Attributes have been assigned to that project. For example, consider the following sample code which we performs a straightforward encryption/decryption of a regular string ("sFirstName"): transaction TMain var sFirstName : string; sEncrypted : string; begin AttributeGetString("FirstName", sFirstName ); sEncrypted := Encrypt(sFirstName); Print("encrypted firstname: " + sEncrypted); sFirstName := Decrypt(sEncrypted); Print ("decrypted firstname: " + sFirstName ); end TMain; If no project attributes have been set in the Silk Performer setting "PROJECT | PROJECT ATTRIBUTES", then the AttributeGetString function will not locate a value for the string "sFirstName" and therefore the following error will occur during replay: AttributeGetString RT: 30 - Attribute access failed, no attributes set If, however, Project Attributes have correctly been declared the function "AttributeGetString" will reference a string and the error will not occur. Old KB# 17280
↧