Forum Discussion
- scot1967Regular Contributor
There are many options for storing data. Do you need it only during the current test (variables, arrays, objects), to pass to or use in other tests (project/suite variables) or do you need file storage like Excel or an external datastore file with a JSON object?
- rraghvani
Champion Level 3
One option is Stores, all other options can be found here https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/index.html
- Hassan_BallanRegular Contributor
On the first step you narrow down the row/column cell to read, I understand that you have this covered as your question is on how to store the value and not isolate to read.
On the second step you store the value in a variable that can reside in three different locations:
1-Project Suite
2-Project
3-Script
In "Project Explorer" right click to Edit > Variables
One thing to keep in mind is the variable type and converting type.In KeywordTests use the "Set Variable Value" Operations
In Script
function Test1() { var Var1; Var1 = ""; Var1 = Aliases.browser.pageW3schoolsTryitEditor.frameIframeresult.cell.contentText; Log.Message("On screen value: " + Var1, ""); }