KristianKarl-zz/GraphWalker

Executing common path for each test case

Closed this issue · 9 comments

try

Hello Sir,

I have attached the graph and output I am getting , I am expecting the output for second condition as

v_HomePage
e_LoginFail
v_errorpage
v_accpage
v_accpage123

Could you please help me and let me know what am I doing wrong.

Hi,
I'm not quite sure what you mean with "output for second condition".
But I guess that you expected v_accpage123 to be visited as well at the end of the generated path?

The stop condition edge_coverage(100) prevents that from happening, since when reaching the vertex v_accpage the second time, the stop condition is fulfilled. All edges are by now covered.

Without changing the model, you could try adding an additional generator. This will start execute when the first generator's stop condition gets fulfilled.

quick_random(edge_coverage(100)) a_star(reached_vertex(v_accpage123))

try1
Looks like I am still doing something wrong

No ampersand character, and no single quotes in reached_vertex condition. Like this:

quick_random(edge_coverage(100)) a_star(reached_vertex(v_accpage123))

When I run I get error Was passed main parameter a_star(reached_vertex(v_accpage1223)) but no main parameter was defined
try2

how can I use all_path_permutations generator in this case

You need to enclose the generators with double quotes.

Have you had a look at http://graphwalker.org

Hello Sir,

All_Path_Permutations is not listed in generators http://graphwalker.github.io/generators_and_stop_conditions/

Is it not supported in graphwalker-cli-3.4.2?

Could you please guide me on how we can generate all paths ?

The generators available are the ones listed in the documentation at http://graphwalker.github.io/generators_and_stop_conditions/

Also. this is not the official repo. That's here: https://github.com/GraphWalker/graphwalker-project

General questions are better posted here: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/graphwalker-3

Best Kristian