We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
If it's comma seperated, then you can do something like this
function Split()
{
var str = "VisionOne, ID:12345678, One Main St.";
const arr = str.split(",");
for (var i = 0; i < arr.length; i++) {
Log.Message(arr[i]);
}
}It will be something like,
Project.Variables.MyVariable = arr[0]; // Store single value
Project.Variables.Var1 = arr; // Store array object
See https://support.smartbear.com/testcomplete/docs/testing-with/variables/collections/project-and-project-suite/index.html
If it's comma seperated, then you can do something like this
function Split()
{
var str = "VisionOne, ID:12345678, One Main St.";
const arr = str.split(",");
for (var i = 0; i < arr.length; i++) {
Log.Message(arr[i]);
}
}