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

want to display Description of each web pages in the index.html and other reports #31

Closed
kazurayam opened this issue Jul 28, 2020 · 3 comments

Comments

@kazurayam
Copy link
Owner

kazurayam commented Jul 28, 2020

I made a small change to Test Cases/CURA/visitSite :
6a7fc03

That test case script now puts the MaterialDescription to each Materials as screenshot. The description is something like "Home page", "Appointment Input Form", etc. Literal descriptions what the page is.

Now I want to see the Material Descriptions are displayed in the Materials/index.html

MaterialDescriptionDisplayed

This enables me annotating anonymous description to each indivisual URL's screenshots. The description would be useful to make the index.html report easier for the readers to understand.

kazurayam pushed a commit that referenced this issue Jul 28, 2020
@kazurayam
Copy link
Owner Author

kazurayam commented Jul 28, 2020

The MaterialDescription information is linked to the Actual Image. I have to make MaterialDescription information to the DiffImage object.

I need to extend the Materials library to enable this.

@kazurayam
Copy link
Owner Author

I checked how much work will be involved to change the Materials/index.html to display MaterialDescription. I found it would require more work than I expected. The com.kazurayam.materials.view.IndexerBase program is not aware of the comparison-result-bundle.json file at all. And it seems that it is difficult to change IndexerBase. The IndexerBase scans the directory tree as is without knowing which file is what.

@kazurayam
Copy link
Owner Author

kazurayam commented Jul 31, 2020

tag 1.23.0 implemented this.

In the Test Cases/CURA/visiteSite script, now write code that calls MaterialRepository#resolve*Path* method with argument of type MaterialDescription. You are supposed to write any description what that screenshot is about. For example, a screenshot of http://demoaut.katalon.com can have a description ホームページ in my native language. The code will look like this.

// create one more screenshot file with name in Japanese
Path png2 = mr.resolveMaterialPath(
					GlobalVariable[MGV.CURRENT_TESTCASE_ID.getName()],
					'screenshots',
					"ホーム.png",
					new MaterialDescription("1", "ホームページ"))

And the Test Suite Collection Test Suite/CURA/Execute_chronos and Test Suite/CURA/Execute_twins will produce Materials/index.html where all "diff images" will be annotated with the description which you added in the Test Cases/CURA/visitSite script.

In short, the page shows the whatever description of each URL's screenshots (in your native language). The page looks like this. Much easier to understand, isn't it?

スクリーンショット 2020-07-31 15 15 33

kazurayam added a commit that referenced this issue Jul 31, 2020
kazurayam added a commit that referenced this issue Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant