online model based testing using Maven

639 views
Skip to first unread message

victor.l...@gmail.com

unread,
Jul 12, 2017, 3:15:07 PM7/12/17
to GraphWalker 3
Goal
I am trying to implement Graphwalker in order to conduct online model based testing using Maven.

Background
In the past, I have used Graphwalker for offline model based testing. I am able to input Selenese code in the description for edges and vertices in the yEd model.
Then, generate test cases, and import these test cases into Selenium IDE to be run on the SUT.

What I Would Like To Do
Now, I would like to be able to do the same except with Java code, and run the currently generated test on the SUT while the model is running by using a Selenium driver.
The thing is, I do not want to 'hard code' what the driver should do in Java on a method-to-method basis.
Instead, I would like to embed that Java code in the description for each edge/vertex, as I have done with Selenese code for offline testing.

Example of 'hardcoded' driver solution:
public void e_Search(){
driver.findElement(By.name("Search")).clear();
}

My desired solution would look something like this, except with "Java" instead of "JavaScript" in the AStarPath declaration.
// Get the model from resources
ModelFactory factory = new GraphMLModelFactory();
Model model = factory.create("Amazon", "/models/ShoppingCart.graphml");


 GraphWalker graphWalker = new GraphWalker();
  graphWalker.addModel(model, new AStarPath(new EdgeCoverage(100)), "JavaScript", new Amazon());

// Start executing the test
graphWalker.execute(model);

Questions:
Is Java code executable from the GraphML file?
Is it possible to import java libraries within the model in yEd?
If so, after instantiating a WebDriver, would it be accessible by all edges and vertices in the model?


Kristian Karl

unread,
Jul 13, 2017, 5:14:12 AM7/13/17
to GraphWalker 3, victor.l...@gmail.com
First, I would recommend you to start using https://github.com/GraphWalker/graphwalker-project instead of the old version GraphWalker 2.

>Questions:
>Is Java code executable from the GraphML file? 
In version 2 yes, in later versions it's java script.

>Is it possible to import java libraries within the model in yEd? 
In version 2 yes, in later versions no. 

>If so, after instantiating a WebDriver, would it be accessible by all edges and vertices in the model? 
In version 2 yes, in later versions no. 

However, I would only recommend to put enough code in the models to 'feed' the guards. Keep the code in the models to a minimum.


Best Kristian

victor.l...@gmail.com

unread,
Jul 13, 2017, 9:55:04 AM7/13/17
to GraphWalker 3, victor.l...@gmail.com
is it possible to implement a Web Renderer in the new versions? https://www.youtube.com/watch?v=a8sBYiDKqds&t=18s

Kristian Karl

unread,
Jul 14, 2017, 6:16:50 AM7/14/17
to GraphWalker 3, victor.l...@gmail.com
Actually yes, the graphwalker-studio can do this.



1) Run studio, like java -jar graphwalker-studio-4.0.0-SNAHOT.jar
2) Open a browser: localhost:9090
3) Click the cogwheel, and enter ws://localhost:8887 as the location, and click connect.

That's it

victor.l...@gmail.com

unread,
Jul 14, 2017, 10:13:27 AM7/14/17
to GraphWalker 3, victor.l...@gmail.com
Thank you for your replies, much appreciated.
So I added the WebSocketApplication.java file to my project, and reference my model implementation when instantiating the Executor. [Executor executor = new TestExecutor(SomeSmallTest.class);]
I also have the graphwalker-studio, and am able to open a browser to connect to localhost:9090.
When I click the cogwheel and enter ws://localhost:8887 as the location, I receive the following error:

Connection error while connecting to: ws://localhost:8887


I am wondering, do I need to load my test into graphwalker-studio? Or run mvn graphwalker:test before trying to connect to ws://localhost:8887 in order to connect properly?

Thanks again

victor.l...@gmail.com

unread,
Jul 14, 2017, 10:49:59 AM7/14/17
to GraphWalker 3, victor.l...@gmail.com
One thing I noticed was that the constructor for WebSocketServer only takes the port as a parameter, while in the example it shows that you pass the executor.getMachine as a second parameter.
Do I need to send that to the WebSocketServer in another way now?

Kristian Karl

unread,
Jul 14, 2017, 12:21:34 PM7/14/17
to GraphWalker 3, victor.l...@gmail.com
You need to use latest version 4.0.0-SNAPSHOT of graphwalker. 


Connect to your test from the browser after you started your test, otherwise you'll see that 'Connection error" string displayed.
The models will be automatically uploaded to the browser from your test.

I found a bug that prevented models being displayed when connected to the test. It's fixed now, but please download the studio jar file once again so you get the latest. Also refresh the browser so it evicts the cache of the old graphwalker javascript.

victor.l...@gmail.com

unread,
Jul 14, 2017, 2:15:39 PM7/14/17
to GraphWalker 3, victor.l...@gmail.com
So when trying to run npm install on the graphwalker-project I am receiving the following error

Results :

Failed tests:
  SimpleMachineTest.executeActionWithVariableNameContext:372
Expected: is <true>
     but: was <false>
Tests in error:
  SimpleMachineTest.executeActionWithFunction:388 ClassCast java.lang.Integer ca...

Tests run: 225, Failures: 1, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GraphWalker Project ................................ SUCCESS [  4.373 s]
[INFO] GraphWalker Core ................................... FAILURE [ 16.967 s]
[INFO] GraphWalker Domain-Specific Language ............... SKIPPED
[INFO] GraphWalker Input/Output ........................... SKIPPED
[INFO] GraphWalker Java ................................... SKIPPED
[INFO] GraphWalker Maven Plugin ........................... SKIPPED
[INFO] GraphWalker Restful Service ........................ SKIPPED
[INFO] GraphWalker Checker ................................ SKIPPED
[INFO] GraphWalker WebSocket Service ...................... SKIPPED
[INFO] GraphWalker Maven Archetype ........................ SKIPPED
[INFO] GraphWalker Command Line Interface ................. SKIPPED
[INFO] GraphWalker Studio ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.836 s
[INFO] Finished at: 2017-07-14T14:22:30-04:00
[INFO] Final Memory: 19M/218M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project graphwalker-core: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/Chatarina/Documents/Fraunhofer2017/graphwalker-project/graphwalker-core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :graphwalker-core

when I attempt to build the studio with the following command
mvn package -pl graphwalker-studio -am

[INFO] Scanning for projects...
[ERROR] [ERROR] Could not find the selected project in the reactor: graphwalker-studio @
[ERROR] Could not find the selected project in the reactor: graphwalker-studio -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

I assume it could not find graphwalker-studio in the reactor because it was skipped during the last process.
Any idea on how I could go about solving this issue?

Kristian Karl

unread,
Jul 14, 2017, 4:27:09 PM7/14/17
to GraphWalker 3, victor.l...@gmail.com
You need to run it from graphwalker-studio/src/main/webapp
The README.md doc in graphwalker-studio assumes you are in the graphwalker-studio folder.

victor.l...@gmail.com

unread,
Jul 14, 2017, 4:33:55 PM7/14/17
to GraphWalker 3, victor.l...@gmail.com
Here is the output when I run mvn package in graphwalker-project/graphwalker-studio

Chatarinas-MBP:graphwalker-studio Chatarina$ mvn package
[INFO] Scanning for projects...
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphWalker Studio 4.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.graphwalker:graphwalker-websocket:jar:4.0.0-SNAPSHOT is missing, no dependency information available

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.096 s
[INFO] Finished at: 2017-07-14T16:44:06-04:00
[INFO] Final Memory: 9M/65M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project graphwalker-studio: Could not resolve dependencies for project org.graphwalker:graphwalker-studio:jar:4.0.0-SNAPSHOT: Could not find artifact org.graphwalker:graphwalker-websocket:jar:4.0.0-SNAPSHOT -> [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

Kristian Karl

unread,
Jul 15, 2017, 7:40:36 AM7/15/17
to GraphWalker 3, victor.l...@gmail.com
Ah, I see.Have a look here: http://graphwalker.github.io/#latest-development-version-snapshot

You need to add:
<repositories> 
    <repository> 
        <releases> 
            <enabled>false</enabled> 
            <updatePolicy>always</updatePolicy> 
            <checksumPolicy>warn</checksumPolicy> 
        </releases> 
        <snapshots> 
            <enabled>true</enabled> 
            <updatePolicy>never</updatePolicy> 
            <checksumPolicy>fail</checksumPolicy> 
        </snapshots> 
        <id>sonatype-nexus-snapshots</id> 
        <name>Sonatype Nexus Snapshots</name> 
        <url>https://oss.sonatype.org/content/repositories/snapshots</url> 
        <layout>default</layout> 
    </repository> 
</repositories> 
<pluginRepositories> 
    <pluginRepository> 
        <id>sonatype-nexus-snapshots</id> 
        <name>Sonatype Nexus Snapshots</name> 
        <url>https://oss.sonatype.org/content/repositories/snapshots</url> 
        <releases> 
            <enabled>false</enabled> 
        </releases> 
        <snapshots> 
            <enabled>true</enabled> 
        </snapshots> 
    </pluginRepository> 
</pluginRepositories>
Into your pom.xml file in order so it finds the latest snapshot.

Alternative, you run mvn clean -U install form graphwalker-project root folder.

victor.l...@gmail.com

unread,
Jul 17, 2017, 11:17:06 AM7/17/17
to GraphWalker 3, victor.l...@gmail.com
Do I add that to the pom.xml file for graphwalker-studio, graphwalker-project, or my project?

Kristian Karl

unread,
Jul 18, 2017, 7:16:32 AM7/18/17
to graphw...@googlegroups.com
Your own project.

victor.l...@gmail.com

unread,
Jul 19, 2017, 9:05:43 AM7/19/17
to GraphWalker 3
After adding that to my pom.xml file I am still receiving the same errors when I try to build the graphwalker-studio-4.0.0.SNAPSHOT.jar file while following the instructions found here: https://github.com/GraphWalker/graphwalker-project/blob/master/graphwalker-studio/README.md

Specificially, the command 'mvn package' is failing.

On Tuesday, July 18, 2017 at 7:16:32 AM UTC-4, Kristian Karl wrote:
Your on project.

Kristian Karl

unread,
Jul 20, 2017, 2:09:18 AM7/20/17
to GraphWalker 3, victor.l...@gmail.com
If its the error as in:
[ERROR] Failed to execute goal on project graphwalker-studio: Could not resolve dependencies for project org.graphwalker:graphwalker-studio:jar:4.0.0-SNAPSHOT: Could not find artifact org.graphwalker:graphwalker-websocket:jar:4.0.0-SNAPSHOT -> [Help 1]

Lets try this:

From the root folder where you cloned the graphwalker-project repository, run:
git reset -f
mvn clean
mvn install

You should not get any problems running the command above. If you do, you have something that is not correct with your environment.
Your jar file for studio will be in: graphwalker-studio/target.

victor.l...@gmail.com

unread,
Jul 20, 2017, 9:18:48 AM7/20/17
to GraphWalker 3, victor.l...@gmail.com
Unfortunately I'm getting the same error as before:

Results :

Failed tests:
  SimpleMachineTest.executeActionWithVariableNameContext:372
Expected: is <true>
     but: was <false>
Tests in error:
  SimpleMachineTest.executeActionWithFunction:388 ClassCast java.lang.Integer ca...

Tests run: 225, Failures: 1, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GraphWalker Project ................................ SUCCESS [  7.482 s]
[INFO] GraphWalker Core ................................... FAILURE [ 26.091 s]

[INFO] GraphWalker Domain-Specific Language ............... SKIPPED
[INFO] GraphWalker Input/Output ........................... SKIPPED
[INFO] GraphWalker Java ................................... SKIPPED
[INFO] GraphWalker Maven Plugin ........................... SKIPPED
[INFO] GraphWalker Restful Service ........................ SKIPPED
[INFO] GraphWalker Checker ................................ SKIPPED
[INFO] GraphWalker WebSocket Service ...................... SKIPPED
[INFO] GraphWalker Maven Archetype ........................ SKIPPED
[INFO] GraphWalker Command Line Interface ................. SKIPPED
[INFO] GraphWalker Studio ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.158 s
[INFO] Finished at: 2017-07-20T09:26:33-04:00
[INFO] Final Memory: 25M/258M

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project graphwalker-core: There are test failures.
[ERROR]
[ERROR] Please refer to /path/to/my/project/graphwalker-project/graphwalker-core/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]

[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :graphwalker-core

Kristian Karl

unread,
Jul 20, 2017, 9:28:22 AM7/20/17
to victor.l...@gmail.com, GraphWalker 3

That is interesting!
Are you running JDK 8?
Could you run:
mvn -version

and paste the results here?


--
You received this message because you are subscribed to the Google Groups "GraphWalker 3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to graphwalker-...@googlegroups.com.
To post to this group, send email to graphw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/graphwalker-3/7124ed9a-7ede-4a78-9eed-ce33591da50a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

victor.l...@gmail.com

unread,
Jul 20, 2017, 9:34:48 AM7/20/17
to GraphWalker 3, victor.l...@gmail.com
I am running Java 8 Update 131

chatarinas-mbp:graphwalker-project Chatarina$ mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_20, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.5", arch: "x86_64", family: "mac"

Kristian Karl

unread,
Jul 20, 2017, 10:38:24 AM7/20/17
to GraphWalker 3, victor.l...@gmail.com
So to eliminate as mush as possible, could you try this: (I did this myself just now with no problems)
#Go to en empty folder
cd some_empty_folder
cd graphwalker-project/
mvn install
java -jar graphwalker-cli/target/graphwalker-cli-4.0.0-SNAPSHOT.jar --version
java -jar graphwalker-studio/target/graphwalker-studio-4.0.0-SNAPSHOT.jar --versio

victor.l...@gmail.com

unread,
Jul 20, 2017, 10:54:52 AM7/20/17
to GraphWalker 3, victor.l...@gmail.com
You are correct, it must be some kind of issue with my machine/environment.
I got the same error as before when running those commands on my Mac.
I decided to try a different machine (Windows 10) and it worked with no problems

victor.l...@gmail.com

unread,
Jul 20, 2017, 2:51:15 PM7/20/17
to GraphWalker 3, victor.l...@gmail.com
I have switched machines now and am able to run all the commands to generate the latest graphwalker-studio-4.0.0.SNAPSHOT.jar file
I also was able to start using the correct WebSocketServer constructor that I was having issues with earlier. 
I have copied most of the structure from your pet clinic example for my own project.

Now I am running the newest graphwalker-studio jar and going to localhost:9090 in a browser
Then, I run mvn graphwalker:test to start executing my test
I wait until the Firefox driver is set up for my test, and then I click the cogwheel to change the location to ws://localhost:8887.
I am seeing the 'Connection Closed' and then shortly after it changes to 'Connection Error".

Is there something I am missing to get the model to appear?

Kristian Karl

unread,
Jul 21, 2017, 1:49:07 AM7/21/17
to graphw...@googlegroups.com, victor.l...@gmail.com
Great! :-)
or, you can also try removing the .m2 repository, 

So to your ws connection problem. I assume that in your code, you have something that looks like:

Executor executor = new TestExecutor(Model_1.class,
                                     
Model_2.class);

WebSocketServer server = new WebSocketServer(8887, executor.getMachine());
server
.start();

Result result = executor.execute(true);



* Do you get a stacktrace from either you test or graphwalker-studio?
* A longshot maybe, you don't have anything on your machine that uses port 8887 already?
* On your machine, is your test allowed to use the port 8887? I was thinking maybe some Windows Firewall is blocking it? 

victor.l...@gmail.com

unread,
Jul 24, 2017, 10:03:50 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
Here is my stacktrace for graphwalker-studio:
$ java -jar graphwalker-studio-4.0.0-SNAPSHOT.jar

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.2.RELEASE)

09:22:40.521 [main] INFO  org.graphwalker.studio.Application - Starting Applicat        ion on DESKTOP-051AGBR with PID 888 (C:\Users\me\Documents\graphwalker-pr        oject\graphwalker-studio\target\graphwalker-studio-4.0.0-SNAPSHOT.jar started by         vlindvall in C:\Users\me\Documents\graphwalker-project\graphwalker-studi        o\target)
09:22:40.537 [main] DEBUG org.graphwalker.studio.Application - Running with Spri        ng Boot v1.5.2.RELEASE, Spring v4.3.7.RELEASE
09:22:40.537 [main] INFO  org.graphwalker.studio.Application - No active profile         set, falling back to default profiles: default
09:22:43.846 [main] INFO  org.graphwalker.studio.Application - Started Applicati        on in 3.668 seconds (JVM running for 4.461)
09:22:43.847 [main] INFO  org.graphwalker.studio.Application - Access URLs:
----------------------------------------------------------
  Local web service:          http://127.0.0.1:9090
  External web service:       http://192.168.0.66:9090
  Local websocket service:    http://127.0.0.1:9999
  External websocket service: http://192.168.0.66:9999
----------------------------------------------------------
09:23:42.169 [WebSocketWorker-11] INFO  o.g.websocket.WebSocketServer - 0:0:0:0:        0:0:0:1 is now connected
09:23:42.213 [WebSocketWorker-11] DEBUG o.g.websocket.WebSocketServer - Received         message from: 0:0:0:0:0:0:0:1 : {"command":"mode"}
09:23:42.225 [WebSocketWorker-11] DEBUG o.g.websocket.WebSocketServer - Sending         response to: 0:0:0:0:0:0:0:1 : {"mode":"EDITOR","success":true,"version":"${proj        ect.version}","command":"mode"}
09:26:06.181 [WebsocketSelector15] INFO  o.g.websocket.WebSocketServer - 0:0:0:0        :0:0:0:1 has disconnected


I will try to find out if there is anything else using port 8887 asap.
I do have windows firewall on. And it says Incoming Connections: Block all connections to apps that are not on the list of allowed apps. 
I don't remember explicitly adding graphwalker to any list of allowed apps, could that be the issue?

victor.l...@gmail.com

unread,
Jul 24, 2017, 10:05:42 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
Here is the stack trace for running mvn graphwalker:test
[INFO] --- graphwalker-maven-plugin:3.4.2:test (default-cli) @ myTest ---
[INFO] ------------------------------------------------------------------------
[INFO]   _____             _   _ _ _     _ _
[INFO]  |   __|___ ___ ___| |_| | | |___| | |_ ___ ___
[INFO]  |  |  |  _| .'| . |   | | | | .'| | '_| -_|  _|
[INFO]  |_____|_| |__,|  _|_|_|_____|__,|_|_,_|___|_|
[INFO]                |_|         (3.4.2)
[INFO] ------------------------------------------------------------------------
[INFO] Configuration:
[INFO]     Include = [*]
[INFO]     Exclude = []
[INFO]      Groups = [*]
[INFO]
[INFO] Tests:
[INFO]     SomeSmallTest(RandomPath, VertexCoverage, 100)
[INFO]
[INFO] ------------------------------------------------------------------------
setting up
1500902761506   geckodriver     INFO    geckodriver 0.18.0
1500902761506   geckodriver     INFO    Listening on 127.0.0.1:38188
1500902762086   geckodriver::marionette INFO    Starting browser C:\Program File        s (x86)\Mozilla Firefox\firefox.exe with args ["-marionette"]
1500902765219   Marionette      INFO    Listening on port 49770
Jul 24, 2017 9:26:05 AM org.openqa.selenium.remote.ProtocolHandshake createSessi        on
INFO: Detected dialect: W3C

victor.l...@gmail.com

unread,
Jul 24, 2017, 10:48:35 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
I was executing the test incorrectly, here is my output from the console. 

1500907487887 geckodriver INFO geckodriver 0.18.0
1500907487902 geckodriver INFO Listening on 127.0.0.1:25423
10:44:48.308 [WebSocketWorker-12] INFO  o.g.websocket.WebSocketServer - 0:0:0:0:0:0:0:1 is now connected
10:44:48.314 [WebSocketWorker-12] DEBUG o.g.websocket.WebSocketServer - Received message from: 0:0:0:0:0:0:0:1 : {"command":"mode"}
10:44:48.320 [WebSocketWorker-12] DEBUG o.g.websocket.WebSocketServer - Sending response to: 0:0:0:0:0:0:0:1 : {"mode":"PLAYBACK","success":true,"version":"${project.version}","command":"mode"}
10:44:48.327 [WebSocketWorker-12] DEBUG o.g.websocket.WebSocketServer - Received message from: 0:0:0:0:0:0:0:1 : {"command":"getModel"}
1500907488539 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe with args ["-marionette"]
1500907489983 Marionette INFO Listening on port 58315
Jul 24, 2017 10:44:50 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
10:44:50.184 [main] DEBUG o.g.core.machine.SimpleMachine - Context: com.company.SomeSmallTest@3995bb7b
10:44:50.184 [main] INFO  o.g.websocket.WebSocketServer - Received an update from a GraphWalker machine
10:44:50.184 [main] INFO  o.g.websocket.WebSocketServer - Event: BEFORE_ELEMENT
10:44:50.184 [main] DEBUG o.g.core.machine.ExecutionContext - Execute e_StartBrowser
Running: e_StartBrowser
10:44:50.422 [main] INFO  o.g.websocket.WebSocketServer - Received an update from a GraphWalker machine
10:44:50.423 [main] INFO  o.g.websocket.WebSocketServer - Event: AFTER_ELEMENT
10:44:50.424 [main] DEBUG o.g.core.machine.SimpleMachine - Context: com.company.SomeSmallTest@3995bb7b
10:44:50.424 [main] INFO  o.g.websocket.WebSocketServer - Received an update from a GraphWalker machine
10:44:50.424 [main] INFO  o.g.websocket.WebSocketServer - Event: BEFORE_ELEMENT
10:44:50.424 [main] DEBUG o.g.core.machine.ExecutionContext - Execute v_AdminPage
Running: v_AdminPage
10:44:50.509 [main] INFO  o.g.websocket.WebSocketServer - Received an update from a GraphWalker machine
10:44:50.509 [main] INFO  o.g.websocket.WebSocketServer - Event: AFTER_ELEMENT
10:44:50.509 [main] DEBUG o.g.core.machine.SimpleMachine - Context: com.company.SomeSmallTest@3995bb7b
10:44:50.510 [main] INFO  o.g.websocket.WebSocketServer - Received an update from a GraphWalker machine
10:44:50.510 [main] INFO  o.g.websocket.WebSocketServer - Event: BEFORE_ELEMENT
10:44:50.510 [main] DEBUG o.g.core.machine.ExecutionContext - Execute e_Restart
Running: e_Restart
etc etc

I am able to connect to port 8887 on the graphwalker-studio, and it gives me updates on the % complete and number of steps taken. But am unable to view the model as it is happening

Kristian Karl

unread,
Jul 24, 2017, 11:08:20 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
Regarding Windows firewall, I believe you need to add java to the list of allowed apps. 

Kristian Karl

unread,
Jul 24, 2017, 11:13:07 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
That sounds like a bug I fixed earlier.
You should see the models executing then.

victor.l...@gmail.com

unread,
Jul 24, 2017, 11:22:03 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
i downloaded the jar from http://graphwalker.github.io/content/archive/graphwalker-studio-4.0.0-SNAPSHOT.jar and replaced my old one. I am still not seeing the models. Could there be a step I am missing?
I run the WebSocketApplication, and as it is starting, I click the cogwheel and connect to the the port. i can see there is something happening between the two programs (updates on % complete and # of steps) but no model appears.
I tried running the GraphStreamApplication which did actually show the model but I ran into the following error midway through execution: 
Exception in thread "main" org.graphstream.graph.EdgeRejectedException: Edge com.company.SomeSmallTest@3feedaece11[com.company.SomeSmallTest@3feedaecn2->com.company.SomeSmallTest@3feedaecn4] was rejected by node com.company.SomeSmallTest@3feedaecn2
at org.graphstream.graph.implementations.AbstractGraph.addEdge(AbstractGraph.java:889)
at org.graphstream.graph.implementations.AbstractGraph.addEdge(AbstractGraph.java:352)
at com.company.observers.GraphStreamObserver.update(GraphStreamObserver.java:96)
at org.graphwalker.core.machine.MachineBase.notifyObservers(MachineBase.java:72)
at org.graphwalker.core.machine.SimpleMachine.getNextStep(SimpleMachine.java:103)
at org.graphwalker.java.test.TestExecutor.execute(TestExecutor.java:199)
at com.company.GraphStreamApplication.main(GraphStreamApplication.java:23)

Kristian Karl

unread,
Jul 24, 2017, 11:26:43 AM7/24/17
to GraphWalker 3, victor.l...@gmail.com
I'll create a video of all the steps, and perhaps that will clear out things. Give a little time to create, and upload it.

Kristian Karl

unread,
Jul 24, 2017, 12:21:40 PM7/24/17
to GraphWalker 3, victor.l...@gmail.com

victor.l...@gmail.com

unread,
Jul 25, 2017, 9:38:03 AM7/25/17
to GraphWalker 3, victor.l...@gmail.com
I appreciate you taking out the time to make the video, it has been useful.
I am able to recreate the example in the video on my machine. 
I noticed that you are running the petclinic Spring project before launching the test.
Does the application have to be hosted locally for the graphwalker-studio visualizations to work?

Kristian Karl

unread,
Jul 25, 2017, 12:07:05 PM7/25/17
to GraphWalker 3, victor.l...@gmail.com

On Tuesday, July 25, 2017 at 3:38:03 PM UTC+2, victor.l...@gmail.com wrote:
I appreciate you taking out the time to make the video, it has been useful.
No problems  

I am able to recreate the example in the video on my machine. 
I noticed that you are running the petclinic Spring project before launching the test.
Does the application have to be hosted locally for the graphwalker-studio visualizations to work?
No. The Spring example project could be hosted on some server anywhere.
Reply all
Reply to author
Forward
0 new messages