Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving second message sequence image in same test overwrites the previous #40

Open
jussimalinen opened this issue Dec 1, 2015 · 3 comments
Labels
Milestone

Comments

@jussimalinen
Copy link
Member

The Embed sequence diagram keyword simply uses the <test name>.png as name for the saved message sequence diagram. This will cause subsequent diagrams in the same test to overwrite the previous. There should be somekind of automatic indexing for the images and also possibly a possibility to give the sequence filename.

@jussimalinen jussimalinen added this to the 0.5.0 milestone Dec 4, 2015
@samratashok87
Copy link
Contributor

To increment the index value of the sequence diagram , where can we keep the variable stored so that everytime we can increment it .

@jussimalinen
Copy link
Member Author

Maybe there could be at module level a dictionary to test names with value of the sequence id?

So something like:

SEQUENCES = {}

And for each generated sequence diagram you could add index 1 if it does not exist yet or then increase it with one:

SEQUENCES[test_name] = index 

@samratashok87
Copy link
Contributor

Does it have to be a static variable for the class ? Or it can be just an attribute of the class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants