Skip to content

Green or Red on HTML template (Only Question)#48

Description

@kwLaur

Hello,

Only Question

It is the best library for json to html 馃憤

I have one question:

I use this library for automation test (GUI) with selenium and python.
Is it possible that in the dictionary I have Value = Pass to be colored with Green and when Value = Fail to be colored with Red?

Example json input:

{

"Numar_Special_Achizitie_Mobile_Service_and_Device_6":{

  "Status":"PASSED",

  "HOST Name":"Windows OS",

  "Release":"None Given, Hardcoded",

  "EXECUTION_TS":"20200821124933",

  "Tests Execution Log":{

     "test_page_Login":{

        "Status":"PASSED",

        "ExecutionLog":{

           "Click_OK":"PASSED",

           "Type_UserName":"PASSED",

           "Type_Password":"PASSED",

           "Click_Login":"PASSED",

           "Select by index_DealerSelect":"PASSED"

        }

     },

     "test_page_Search":{

        "Status":"FAIL",

        "ExecutionLog":{

           "Click_MSISDN":"PASSED",

           "Type_searchKey_MSISDN":"PASSED",

           "Click_cauta":"FAIL"

        }

     },

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions