Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Alp eren
@nereplabey_twitter
Missing a command. Add '--help'
Have you ever encountered this error before?
7 replies
Alp eren
@nereplabey_twitter
hi all

`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.`

12 replies
when my friend try to install getting an error
Alp eren
@nereplabey_twitter
can I created allure report with altwalker ?
2 replies
my last question :)
1 reply
Robert Dezmerean
@robert-dezmerean_gitlab

New release of the Model-Editor.

What's new:

  • New design
  • Import feature: Now you can load models from a json file.

https://altom.gitlab.io/altwalker/model-editor

screenshot.png
Retonya Dunning
@rdunning5_gitlab
When running Altwalker offline, are you able to receive a report of the edge, vertex, and requirement coverage for the path generated?
4 replies
Long Luc
@culgnol
Hi All, I was wonder would anyone have any best practices with when using AltWalker? Specifically after I've generated my code template and went about implementing my code, if I need to make a change to the graph, do i generate separate code template and do a manual diff between the two and pull in the differences?
4 replies
Long Luc
@culgnol
Hey All, one more question any docs/tuts on how to launch the live-viewer/visualizer while tests are running in C#? Tried this to no avail: https://github.com/GraphWalker/graphwalker-project/wiki/GraphWalker-Player
3 replies
Reich Edvin
@ReichEdvin_gitlab
Hi all,
We've just released a VSCode extension for visualizing your AltWalker or GraphWalker models.
Key features:
iuliamoldovan21
@iuliamoldovan21
Hello, as GraphWalker allows to create and use custom generators, do you know if AltWalker allows to use such a custom generator? I need to go through the graph in first depth and random and a_star generators are not helppful in this way.
3 replies
wujunyi2020
@wujunyi2020
I go an error when using altwalker offline command.
how can I avoid it?

(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

login.json file downloaded from the document website
looks like that:
{
"name": "Simple login example",
"models": [
{
"name": "LoginModel",
"generator": "random(never)",
"startElementId": "v_0",
"actions": [
"isUserLoggedIn = false;"
],
"vertices": [
{
"id": "v_0",
"name": "v_start"
},
{
"id": "v_1",
"name": "v_app"
},
{
"id": "v_2",
"name": "v_logged_in"
},
{
"id": "v_3",
"name": "v_logged_out"
}
],
"edges": [
{
"id": "e_0",
"name": "e_open_app",
"sourceVertexId": "v_0",
"targetVertexId": "v_1"
},
{
"id": "e_1",
"name": "e_log_in",
"guard": "isUserLoggedIn == false",
"actions": [
"isUserLoggedIn = true;"
],
"sourceVertexId": "v_1",
"targetVertexId": "v_1"
},
{
"id": "e_2",
"name": "e_log_out",
"guard": "isUserLoggedIn == true",
"actions": [
"isUserLoggedIn = false;"
],
"sourceVertexId": "v_1",
"targetVertexId": "v_1"
},
{
"id": "e_3",
"name": "e_for_user_logged_in",
"guard": "isUserLoggedIn == true",
"sourceVertexId": "v_1",
"targetVertexId": "v_2"
},
{
"id": "e_4",
"name": "e_for_user_not_logged_in",
"guard": "isUserLoggedIn == false",
"sourceVertexId": "v_1",
"targetVertexId": "v_3"
}
]
}
]
}
Dorin
@dorinoltean
do you have a file named graphwalker-service.log in your working directory ?
wujunyi2020
@wujunyi2020
@dorinoltean where can I find the log?
Dorin
@dorinoltean
in your working directory , the path where you ran the command from
wujunyi2020
@wujunyi2020
@dorinoltean (base) [root@localhost ~]# cd graphwalker/
(base) [root@localhost graphwalker]# ls
graphwalker-cli-4.2.0.jar graphwalker-cli.sh
10 replies
it seems there's no log
Robert Dezmerean
@robert-dezmerean_gitlab
Screenshot_2020-07-06 Model-Editor - A web based editor for AltWalker and GraphWalker models (1).png
@wujunyi2020 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.

wujunyi2020
@wujunyi2020
@robert-dezmerean_gitlab (base) [root@localhost ~]# altwalker check -m login.json "random(vertex_coverage(100))"
No issues found with the model(s).
it seems no issues
Robert Dezmerean
@robert-dezmerean_gitlab
This is a bug in the check command, I'm gonna make an issue for it.
wujunyi2020
@wujunyi2020
@robert-dezmerean_gitlab it seems that with the same result along with gw offline
(base) [root@localhost ~]# gw check -m login.json "random(vertex_coverage(100))"
No issues found with the model(s).
@robert-dezmerean_gitlab Do you mean that the worflow should be in circle instead of dead leaf?
Robert Dezmerean
@robert-dezmerean_gitlab

Your models can have dead ends but you should be aware of this when choosing a generator and stop conditions.

But if you want to use random(vertex_coverage(100)) or random(never) you should not have dead ends in you models.

19 replies
Rares Fetean
@rares.fetean_gitlab
Hi guys! I wanted to share an article, presenting an approach of testing the authentication flow of an application with the State Transition Testing technique.
We use AltWalker, GraphWalker and Python to write and execute tests automatically. All the tools used are free and open source.
It can help you to get started with:
• Modeling a web authentication flow
• Writing and executing Python tests with AltWalker
• Running tests in CI
If you think it might help you, check this article: https://altom.com/state-transition-testing-automated-tests-for-authentication-flows/
pusoktimea
@pusoktimea_gitlab
Hey all, BBST Courses organizes an online interactive workshop on model based testing. I thought it might be of interest to some of you: https://bbst.courses/state-model-based-testing-workshop/
Sergio Freire
@darktelecom_twitter

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?

4 replies
Sergio Freire
@darktelecom_twitter

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]"
}
3 replies
Sergio Freire
@darktelecom_twitter
I'm trying to make a custom reporter and I'd like to make altwalker use it, so that when I run it from the command line, the reporter would be used. I'm struggling to get it working and from what I can see in the code, I'm not sure if this is possible or not. Has anyone some insights on this topic?
4 replies
Sergio Freire
@darktelecom_twitter
Hi everyone, I was trying to port the petclinic example from GraphWalker to AltWalker and it's mostly done. I have just one doubt as I encountered one problem with the underlying model, as it seems that it has edges without "name" attribute. This leads to error whenever trying to generate the code skeleton as altwalker complains about it.
However, when I look at the Java example (using GraphWalker), the model has in fact these edges without any method.
https://github.com/GraphWalker/graphwalker-project/wiki/PetClinic
  1. My main question is: what exactly does it mean to have an edge without a name? It seems to be valid.. and the Java implementation (https://github.com/GraphWalker/graphwalker-example/blob/master/java-petclinic/src/main/java/com/company/modelimplementations/VeterinariansTest.java) for the model doesn't implement any code whatsoever related to this transition.. so, how is it handled?
  2. Should altwalker support these unamed edges also?
10 replies
image.png
Sergio Freire
@darktelecom_twitter
I've ported an example for AltWalker for the PetClinic application. full source here: https://github.com/bitcoder/altwalker-petclinic-example
Sergio Freire
@darktelecom_twitter
Hi team, in the current altwalker visual editor is it possible to reorganize the graph? I don't see a shortcut for that so maybe it's not available?
11 replies
Sergio Freire
@darktelecom_twitter
image.png
Robert Dezmerean
@robert-dezmerean_gitlab
Screenshot 2020-10-13 at 12.33.55.png
Sergio Freire
@darktelecom_twitter
On another topic, how can I see the seed used by altwalker (which in turn I think comes from GraphWalker) and how can I enforce it as an argument, to ensure that I run the model again in the exact same way?
8 replies
athar1001
@athar1001
Hello Everyone
Can anyone please explain how test case selection is performed in graphwalker to create test cases. i mean what is the logic behind?which criteria is followed?
3 replies
Sergio Freire
@darktelecom_twitter
hi team, just to let you know that altwalker 0.2.7+gw 4.3.0 is problematic passing data to edges/vertices :(
the first argument to the edge/vertex method containing the data seems to be receiving the java class object id