This page is maintained for older versions of Rapise only. The latest documentation can be found at:
Custom Strings

Custom Strings

Top  Previous  Next


Custom Strings allow you to associate meta data with your test.  Each custom string has a name and a value.  The value can be retrieved using the name.




Adding a Custom String

1.Open the NameValue Collection Editor dialog. Instructions are HERE.
2.Press the Add button.
3.Fill in a name and value for the custom string.
4.Press OK.  The dialog will close.


Retrieving a Custom String value

Use the GetCustomString() method to retrieve a custom string's value.  See the example below:

 var factory = new ActiveXObject("Rapise.Test.Test");

 var test = factory.LoadFromFile( Global.GetFullPath("UsingCustomStrings.sstest"));

 var BugID = test.GetCustomString("BugID");

 var TestID = test.GetCustomString("TestID");


See Also

·NameValue Collection Editor Dialog
·There is a sample test called UsingCustomStrings.