RE: How to save User Defined Data in Global Data Sheet
If u want the values in the global sheet then just add this line x Browser("a").Page("a ").WebEdit("a").GetROProperty("value") datatable.Value("name" global) x now ur value will be in the datatable.
RE: How to save User Defined Data in Global Data Sheet
Thank you Vignesh That was helpful. It worked for me. I have another question now. How can I compare two columns in Data Table ? I am trying to do something like this.
Global Data Table Col 1 Col 2 xxxx yyyyy www ttttttt
If Col 1 Col2 then I want to generate a report saying "PASS" else "FAIL"
RE: How to save User Defined Data in Global Data Sheet
hi sai try this out a datatable.Value("name1" dtglobal) b datatable.Value("name2" dtglobal) If a b Then reporter.ReportEvent micPass "values r equal" "step3" else reporter.ReportEvent micfail "values r not equal" "step3" End If
ur result will be generated in the testresult window if u want in the test script during runtime itself use msgbox instead of reporterevent.
RE: How to save User Defined Data in Global Data Sheet
Hi sai Try this for entering data at run time in your datatable c "somedata" datatable("name2" dtglobal) c
and compariing two column this will work Dim A B A datatable.Value("Columnname1" dtglobal) B datatable.Value("Columnname2" dtglobal) If A B Then reporter.ReportEvent micPass "values are equal" "step3" else reporter.ReportEvent micfail "values Are not equal" "step3" End If