AltWalker is an open source Model-Based Testing framework that supports running tests written in python3 and .NET/C#.
`ERROR: Command errored out with exit status 1:
command: 'c:\users\elif.top\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\elif.top\AppData\Local\Temp\pip-req-build-xdvgbkn8\setup.py'"'"'; file='"'"'C:\Users\elif.top\AppData\Local\Temp\pip-req-build-xdvgbkn8\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\elif.top\AppData\Local\Temp\pip-req-build-xdvgbkn8\pip-egg-info'
cwd: C:\Users\elif.top\AppData\Local\Temp\pip-req-build-xdvgbkn8\
Complete output (26 lines):
Traceback (most recent call last):
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\pkg_resources__init.py", line 2857, in get_entry_map
ep_map = self._ep_map
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\pkg_resources\init.py", line 2815, in getattr__
raise AttributeError(attr)
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\elif.top\AppData\Local\Temp\pip-req-build-xdvgbkn8\setup.py", line 23, in <module>
setup(
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\setuptools\__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\setuptools\__init__.py", line 132, in _install_setup_requires
dist = distutils.core.Distribution(dict(
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\setuptools\dist.py", line 443, in __init__
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\pkg_resources\__init__.py", line 656, in <genexpr>
for entry in dist.get_entry_map(group).values()
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\pkg_resources\__init__.py", line 2859, in get_entry_map
ep_map = self._ep_map = EntryPoint.parse_map(
File "c:\users\elif.top\appdata\local\programs\python\python38\lib\site-packages\pkg_resources\__init__.py", line 2531, in parse_map
raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`
New release of the Model-Editor.
What's new:
(base) [root@localhost ~]# altwalker offline -m login.json "random(vertex_coverage(100))"
GraphWalker Error:
An error occurred when running command: offline --model login.json random(vertex_coverage(100)) --verbose --blocked False
null
vertex_coverage(100)
is not achievable with this model.
When you reach a leaf node you reach a dead end and the path can't achieve vertex_coverage(100)
.
You can try to run altwalker check -m login.json "random(vertex_coverage(100))"
to check if the generator and stop condition are valid for the model.
Hi everyone, I'm trying to setup a basic example from scratch but whenever I try to run altwalker (or the graphwalker) it quits with null error message
gw online --model models/teststatus.json "random(edge_coverage(100))" --port 8887 --service RESTFUL --verbose
An error occurred when running command: online --model models/teststatus.json random(edge_coverage(100)) --port 8887 --service RESTFUL --verbose
null
altwalker check -m models/teststatus.json "random(edge_coverage(100))"
No issues found with the model(s).
altwalker verify -m models/teststatus.json tests
No issues found with the code.
altwalker online -m models/teststatus.json "random(edge_coverage(100))" tests
Running:
ERROR:altwalker.graphwalker:Could not start GraphWalker Service on port: 8887.
ERROR:altwalker.graphwalker:Process exit code: 0
ERROR:altwalker.graphwalker:GraphWalker Service Error: null
GraphWalker Error:
An error occured while trying to start the GraphWalker Service on port: 8887
null
For more information check the log file at: graphwalker-service.log
any clues?
on another topic, I've defined a variable on one edge. this variable is an array. I want now to access it from the python code side but it seems that it's being serialized... what am I missing?
on the model, as actions on the model
nonfinal_statuses = ['TODO', 'EXECUTING'];
final_statuses = ['PASS', 'FAIL', 'ABORTED'];
output:
[2020-09-28 14:41:52.472732] TestStatusModel3.scheduled_run_final Running
Data:
{
"final_statuses": "[object Array]",
"nonfinal_statuses": "[object Array]"
}
Hi everyone, I just made available a JUnit XML reporter for AltWalker; it can generate reports in two different ways, so that you can integrate it with your CI/CD tools and even a test management tool if you wish to do so. You can find the code for it in this repo (https://github.com/bitcoder/altwalker-petclinic-example); it requires you to call altwalker programatically using its API.
A full end2end tutorial, showing integration with Jira using Xray is available here: https://docs.getxray.app/display/XRAY/Model-Based+Testing+using+AltWalker+and+Python
Feedback is welcome. Feel free to copy/adapt the custom reporter to your own needs and eventually use parts of it if you wish to include something similar in AltWalker officially. I think that would require cleaning up some code and eventually doing some changes but its a starting point :)