Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 20 2021 08:20
  • Dec 18 2021 22:02
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 18 2021 22:02
    GitLab | Robert Dezmerean pushed to altwalker
  • Dec 18 2021 21:56
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 18 2021 20:24
    GitLab | Robert Dezmerean pushed 2 commits to altwalker
  • Dec 18 2021 20:23
  • Dec 14 2021 12:03
  • Dec 09 2021 14:08
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 09 2021 13:51
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 08 2021 16:08
    GitLab | Robert Dezmerean pushed 5 commits to altwalker
  • Dec 08 2021 15:15
    GitLab | Robert Dezmerean pushed to altwalker
  • Dec 08 2021 15:15
    GitLab | Robert Dezmerean pushed 3 commits to altwalker
  • Dec 08 2021 15:10
    GitLab | Robert Dezmerean pushed to altwalker
  • Dec 08 2021 15:10
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 08 2021 15:10
  • Dec 08 2021 14:40
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 07 2021 09:52
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 04 2021 10:46
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
  • Dec 03 2021 20:56
    GitLab | Robert Dezmerean pushed 1 commits to altwalker
wujunyi2020
@wujunyi2020
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
3 replies
Sergio Freire
@darktelecom_twitter

hi team, small type in the command line; TEST_PACAKGE should be TEST_PACKAGE

$ altwalker --help
Usage: altwalker [OPTIONS] COMMAND [ARGS]...

A command line tool for running model-based tests.
...
verify Verify test code from TEST_PACAKGE against the model(s).

1 reply
Sergio Freire
@darktelecom_twitter

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 :)

2 replies
Anh Phan
@anhphanExist

Screenshot from 2021-02-02 00-42-39.png

Hi guys, I am getting started with altwalker C# but I encountered this error when I start with quickstart guide altwalker online -x c# tests -m models/default.json "random(edge_coverage(100))" in the docs. Besides, I dont know how I could run without encountering it with JetBrains Rider's run feature but when I entered the site 0.0.0.0:5000 it showed {"error":{"message":"Handler not found"}}

3 replies
Robert Dezmerean
@robert-dezmerean_gitlab

New release of altwalker (0.3.0) on PyPI.

To upgrade to the new version run pip install -U altwalker

Check out the Changelog.

Robert Dezmerean
@robert-dezmerean_gitlab

AltWalker should work fine with GraphWalker 4.3.x, but there are issues with global attributes (e.g. global.count), for example something like this won't work in GraphWalker 4.3.x:

def v_start(self, data):
    # to set a new value for a global key 
    data["global.count"] = 1

Until this issue is fixed in 4.3.2 you should use 4.2.0.

Sergio Freire
@darktelecom_twitter
thnx
John.Wang
@wywincl
hi, can anyone help me? where can i find the altwalker test execution live viewer
I saw a youtube video "Automating Test Execution using a Model-Based Testing Framework", and may I ask where I can find the "visualizer" ? I want to reflects the steps in real-time during execution
1 reply
Ct~
@23harf_twitter
Hello everyone I am new at altwalker and I want to use it in my term project. I create json file with altwalker model in vscode, but I don't know how to connect my web configuration and test all
1 reply
can you help me please
spaghetticat08
@spaghetticat08
Hi everyone, I am currently working on my bachelor thesis project where I am researching how MBT can be deployed in the company I work for. Altwalker seems the most interesting choice because of the visual model editor and the tests in python (our testframework is in Python as well). However, I seem to get stuck on the problem I am trying to solve and I am not sure whether I don't understand Altwalker completely, or have encountered a limitation. The way I have set up altwalker is that for every transition a command is sent over to a remote system using ssh (with Paramiko) that calls a bash shell and then executes another python script. For every command I either get a 0 back indicating it was succesfull, or a return error if something went wrong. If I use every vertex to assert whether the command returned 0, it can run into a problem if one of the commands is unsuccesful. I noticed Altwalker then immediately quits because of the assertion failing. For my system in some cases this is ok, but in some scenario's I would like it to continue on a different path or retry the command. However, I don't see any of these kind of decision nodes or a way to make Altwalker aware to take a different edge at that moment. I could remove the assertion, but then Altwalker will think the command was executed OK, which is also undesirable in some scenarios. Anyone who could help me with this? Thank you in advance
3 replies
Johan Lundstroem
@lundstrj

tl;dr;

I want to be able to perform model actions (so I can enable/disable) edges in my model, on the fly.

So far I have been unable to figure out a way of getting that done.

In slightly more detail:
Setting regular actions and guards is all good and well but I need to be able to do this based on the data the actual test code has. Is this something that can be done currently (I am OK with hacky solutions)? If not, should I try to get this into AltWalker or would it be better to talk to the graphwalker people?

5 replies
mmstahl
@mmstahl

Hi -
I need to set a variable inside the model to a random number (e.g. between 1-100). I have a suspicion that this can be done with Read/Update Graph Data, but I need to see an example. The information in https://altom.gitlab.io/altwalker/altwalker/core/tests-structure.html#read-update-graph-data is too short for me to understand how to use it.

Any examples I can look at?

Any other suggestions how I can set a variable (e.g. global.MyVar) to a random number?

thanks, Michael

(I explained the full problem here: https://groups.google.com/g/graphwalker/c/K9xMFLmWxjc in case you are wandering why I need this).

3 replies
@mmstahl
nnnnanamalik
@nnnnanamalik
Hi all, sorry to ask this question first of all. but i find that when i try to run the online test of default.json it gives an error of
Error: [WinError 2] The system cannot find the file specified
←[33mResourceWarning: unclosed file <_io.TextIOWrapper name='graphwalker-service.log' mode='w' encoding='cp1252'>
←[0m
i'm still new with this method, so can anyone help me with this?
thank you
41 replies
Dezmerean Robert
@Robert-96

New release of altwalker (0.3.1) on PyPI.

To upgrade to the new version run: pip install -U altwalker

Check out the changelog.

athar1001
@athar1001
Hi everyone. is it possible to use jenkins on top of altwalker? Means altwalker commands can run through jenkins?
3 replies
athar1001
@athar1001
Hi
I am getting this error when i check the model and execute test cases can anyone help to solve this. Thanks.
GraphWalker Error: GraphWalker responded with the error: `An error occurred when running command: check --model test2.json random(vertex_coverage(100)) --blocked False
Failed to create ScriptEngine
15 replies
athar1001
@athar1001
Hi can someone please help or describe how to run tests via jenkins. I am stuck with this.
4 replies
stephen-hricko
@stephen-hricko
Hi all, tearing my hair out here. No matter what I do, I always get the following errors:
my console states: GraphWalker Error: Could not start the GraphWalker Service on port: 8887 and my log file states: Missing a command. Add '--help'.
I am trying to run the following command: altwalker online tests -m models/FRG_PRELIM.json "random(edge_coverage(100))"
Please help, as I am very excited to use this tool. Thanks!
2 replies
stephen-hricko
@stephen-hricko
Hello again all! I think I've managed to solve my problem. All I had to do was add %* to the end of the batch file. Now it looks like this: java -jar C:\graphwalker\graphwalker-cli-4.3.1.jar %* I'm not sure if this will work long-term, but it sure seems to fix my problem now!
3 replies
athar1001
@athar1001
Hi everyone. can we use altwalker with Appium for mobile app testing? If yes can you please provide any link to the example that I can follow.
2 replies