Quality Testing

Quality is delighting customers

Hi,

Small query in QTP tool:

How to write values into dtGlobalSheet using QTP?

Could you answer my question please?

Regards,
Malini

Views: 14329

Reply to This

Replies to This Discussion

datatable("columnaname",dtGloabalsheet)="Yourtext"
DataTable("FIELD_1", dtGlobalSheet) = newvariablevalue or "Value",
where FIELD_1 is the Columnname (you can also use the index)
To find the value:

DataTable.Value(ParameterID [, SheetID]) or DataTable(ParameterID [, SheetID])

e.g DataTable.Value("Test",dtGlobal) if it global, if it is local DataTable.Value("Test",dtLocal)

The ParameterID is the column name in present local sheet, in my example i use the column name as Test, to change the column name, double click on column it displays dialog box enter name of the column.

To set the value:

DataTable.Value(ParameterID [, SheetID])=NewValue or DataTable(ParameterID [, SheetID]) =NewValue

e.g DataTable.Value("A",dtGlobal)=2 if it global, if it is local DataTable.Value("A",dtLocal)=2
Hi,
You Can Write values in data table i.e Local or Global

Ex:-
DataTable("name",dtLocalSheet)="Name1"
DataTable("name2",dtLocalSheet)="Name2"

Result :
But Result can be seen in Runtime data table. (i.e in Result Page you can see these values)

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service