Description
Use the StoredObject
property to obtain a scripting interface to property collections saved to the Stores project items.
Declaration
Applies To
The property is applied to the following object:
Parameters
The property has the following parameter:
Property Value
A StoredObject
that provides a scripting interface to the desired property collection. Using this object, you can view and change property values stored to the collection.
Remarks
If you use Python or DelphiScript, you should enclose the parameter of the Objects.StoredObject
property in square brackets: Objects.StoredObject[Name]
.
If the specified collection does not exist, StoredObject
returns an empty value (Nothing
in VBScript, None
in Python, null
in JavaScript, JScript, C++Script and C#Script, and nil
in DelphiScript) and posts an error message to the test log.
Example
The following example demonstrates how you can access the desired property collection and compare the values of the stored properties with the actual values.
JavaScript, JScript
// Obtains a scripting interface to the desired property collection
StoredCollection = Objects.StoredObject("MyCollecion");
// Compares the stored values with actual values
StoredCollection.Check(p);
Python
p = Sys.Process("MyProcess")
# Obtains a scripting interface to the desired property collection
StoredCollection = Objects.StoredObject("MyCollecion")
# Compares the stored values with actual values
StoredCollection.Check(p)
VBScript
' Obtains a scripting interface to the desired property collection
Set StoredCollection = Objects.StoredObject("MyCollecion")
' Compares the stored values with actual values
Call StoredCollection.Check(p)
DelphiScript
// Obtains a scripting interface to the desired property collection
StoredCollection := Objects.StoredObject('MyCollecion');
// Compares the stored values with actual values
StoredCollection.Check(p);
C++Script, C#Script
// Obtains a scripting interface to the desired property collection
StoredCollection = Objects["StoredObject"]("MyCollecion");
// Compares the stored values with actual values
StoredCollection["Check"](p);
See Also
Stores
About Objects Collection
Modifying Property Collections in Stores
Name Property
Update Method