Skip to content
generateDocumentationData.py 736 B
Newer Older
from pprint import pprint
from doc.analysis.generaterobotdata import GenerateRobotData
lopezaguilar's avatar
lopezaguilar committed
import json
lopezaguilar's avatar
lopezaguilar committed
    data = GenerateRobotData(robot_file='../TP/NGSI-LD/CommonBehaviours/044_01.robot',
                             execdir='/home/fla/Documents/workspace/bdd/ngsi-ld-test-suite')
    data.parse_robot()
    info = data.get_info()
lopezaguilar's avatar
lopezaguilar committed

    with open('result.json', 'w') as fp:
        json.dump(obj=info, indent=4, fp=fp)
lopezaguilar's avatar
lopezaguilar committed
    # data = GenerateRobotData(robot_file='../TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot',
    #                          execdir='/home/fla/Documents/workspace/bdd/ngsi-ld-test-suite')
    # data.parse_robot()
    # info = data.get_info()
    # pprint(info)