Commit 3d21dfee authored by Giuseppe Tropea's avatar Giuseppe Tropea
Browse files

made tpid a clickable link leading to robot file

parent b5065176
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ if __name__ == "__main__":
    number_of_all_testcases = 0
    number_of_successes = 0
    ROBOT_FILE_EXTENSION = ".robot"
    BASE_URL_OF_FORGE="https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/blob/testsuitedata/TP/NGSI-LD/"

    fullpath = basedir+"/TP/NGSI-LD"
    for root, dirs, files in walk(fullpath):
@@ -20,6 +21,10 @@ if __name__ == "__main__":
                number_of_all_testcases += 1
                name_of_test_case = filename[:-len(ROBOT_FILE_EXTENSION)]
                json_of_test_case = create_json_of_robotfile(name_of_test_case, True)
                # add HTML link to robot file in repo
                fullurl = BASE_URL_OF_FORGE + json_of_test_case["robotpath"] + "/" + json_of_test_case["robotfile"] + ROBOT_FILE_EXTENSION
                # use the file name as text of the link
                json_of_test_case["robotlink"] = "<a href=\""+fullurl+"\">" + json_of_test_case["robotfile"] + "</a>"
                statistics[name_of_test_case] = dict()
                strippedpath = root[len(fullpath)+1:]
                statistics[name_of_test_case]["path"] = strippedpath