Quality Testing

Quality is delighting customers

If Environment.Value("errCurrentValue") Then
                                DataTable.Value ("Status", "Global")="PASS"
                Else
                                DataTable.Value ("Status", "Global")="FAIL"
                                DataTable.Value ("Status_Detail", "Global")=Environment.Value("errCurrentMessage")
                End If
                '-------------------------------- Export Spreadsheet to File -------------------------------------------
                DataTable.ExportSheet Environment.Value("glResultDirectory"),"Global"
                DataTable.ExportSheet Environment.Value("glResultDirectory"),1
                DataTable.Export Environment.Value("glResultDirectory")

plz expalin me wts happening here?

Views: 182

Reply to This

Replies to This Discussion

Based on errCurrentValue variable value (Pass/Fail) the script will add its status (pass/fail) in "Status" and "Status_Detail" sheets.

Also exporting value to runtime datatable.

Hi,

If the environment variable  "errCurrentValue" is Pass, then in Global DataTable sheet under the column name "Status" it will write "PASS".

Else If environment variable  "errCurrentValue" is Fail, then in Global DataTable sheet under the column name "Status" it will write "Fail" and also under column name "Status_Detail" it will write the error message which is set into environment variable "errCurrentMessage" .

And finally it will export the final results from Global DataTable sheet to a particular directory path, which is set into environment variable "glResultDirectory".

Thanks and regards 

Amit Nimje : Infocepts Pvt Ltd

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2021   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service