Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kwLaur opened this issue Aug 21, 2020 · 0 comments
Open

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

kwLaur opened this issue Aug 21, 2020 · 0 comments

Comments

@kwLaur
Copy link

kwLaur commented Aug 21, 2020

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

@kwLaur kwLaur changed the title Green or Value on HTML template (Only Question) Green or Red on HTML template (Only Question) Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant