When I first came into contact with httprunner, I was not familiar with the YML format. After running the use case, I reported an error while parsing a block mapping
an error is reported as shown in the figure:
after checking the data, it is said that there is no alignment. It is recommended to use space alignment. Then find my 9 lines, find that the number of spaces is different from the others, and then use spaces to keep consistent with the others.
For example, in my extract, I counted the four spaces before the request, counted the first four spaces before the extract, and found that they were not four. After changing them, I succeeded. PS: because the number of extracted spaces in the front is wrong, and the spaces of imagetoken below are also wrong. They will succeed after they are changed together
Read More:
- [Solved] HttpRunner Error: Invalid testcase path or testcases: startproject
- Httprunner output assure Report
- [Solved] Python Error: IndentationError: expected an indented block
- Python3.6 Run uvicorn Error: AttributeError: module ‘asyncio‘ has no attribute ‘run‘
- [Solved] Django Access to the backend error: Invalid block tag on line 98: ‘trans‘, expected ‘elif , ‘else‘或‘ endif. Did you forget
- Syntaxerror: unexpected EOF while parsing solution and ideas
- [Solved] configparser.ParsingError: Source contains parsing errors:
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- Python parsing JSON Error: NameError: name ‘false’ is not defined
- Python Run Error: TypeError: hog() got an unexpected keyword argument ‘visualise‘”
- visdom Install and Run Error: raise Connectionerror [How to Solve]
- [Solved] CONDA ENV create and run Error: F environment.yml under win10
- Pytorch Run Error: BrokenPipeError [How to Solve]
- [Solved] RuntimeError: run loop already started raise RuntimeError(‘run loop already started‘)
- Docker run xxx,E Time Elapsed: 0:00:00.000180
- Python server run code ModuleNotFoundError Error [How to Solve]
- You can run the Ansible Playbook in Python by hand
- Jetson MONAILabel(arm) Failed to Run distributed Module [How to Solve]
- VScode Run CONDA environment Error [How to Solve]
- [Solved] Pyinstaller Package and Run Error: RuntimeError: Unable to open/read ui device