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

How to update existing test during re-run #25

Closed
ghadigaonkarnilesh opened this issue Jan 1, 2019 · 12 comments
Closed

How to update existing test during re-run #25

ghadigaonkarnilesh opened this issue Jan 1, 2019 · 12 comments
Labels

Comments

@ghadigaonkarnilesh
Copy link

Hi,
This is same as many users reported earlier.We would need feature so that during rerun of failed tests when we use same report(earlier report) , if rerun passes it should overwrite earlier fail status.Please note that this is very important feature as customer always wants single report for execution (which we can create setting flag as False during initialization) but it should also contain final status as customer is interested in that only.
Test may fail due to scripting issues which test engineer would fix and rerun and we want only final status to be available in report. Can this be taken on priority?

Thanks,
Nilesh

@foursyth
Copy link

foursyth commented Jan 8, 2019

This feature is not available yet, but is planned for a future release.

If you would like this sooner, I would suggest sending in a pull request.

@anshooarora anshooarora added the enhancement New feature or request label Jan 8, 2019
@ghadigaonkarnilesh
Copy link
Author

Hi.
Please note that when you do enhancement it should work in below scenario-
1.When you point to existing report using flag as false , and rerun test , it should overwrite test's earlier result.
2.I do see that there is method 'RemoveTest' in v4 but it requires extendtest object as input.
3.When we point to earlier report we can not have its extendtest object as it would get destroy with earlier session.We should be able to remove test with test name string as input.
4. Alternativly you can enhance starttest method which takes string input.

@sahi449
Copy link

sahi449 commented Jan 20, 2019

I tried placing custom logo in report , it worked fine in v3 but it's not working in v4. Could you please share the code snippet to add custom logos through config file

@stale
Copy link

stale bot commented Mar 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

@stale stale bot added the Stale label Mar 21, 2019
@ghadigaonkarnilesh
Copy link
Author

ghadigaonkarnilesh commented Mar 22, 2019

Hi Anshu,
I am not sure why you are not prioritising this. Please note , you have created excellent reports. I gave mutiple Demos to customer and we always get comment that we should share this report with all stakeholders after execution, which we are unable to do because it contains earlier fail results if test is ran mutiple times.
In my opinion, we automation engineer doesnt need such flashy reports ,even excel reports would suffice. We use extent report as it is impressive for customer and if we can not share it with them then it kills point.
This is open issue for us and we have added entry in our issue tracker as open issue.
So please dont mark as stale and fix it.

Thanks,
Nilesh

@foursyth
Copy link

@ghadigaonkarnilesh

I would highly suggest you to send in an enhancement request. This is not a priority for us because of Klov - which enables this feature out of box.

@anshooarora
Copy link
Member

I had planned to create a json file for the session and using that to parse when recreating the HTML file. Now, doing so is not so straight forward because of the tree structure and hierarchical relationships between the elements. Using Gson is the most straight-forward but it does not support same element hierarchies so - its a little intensive serializing per element.

As @foursyth said, we will welcome any pull requests. I am leaving this feature up to the community to decide the best possible implementation.

@ghadigaonkarnilesh
Copy link
Author

@anshooarora @foursyth
while exploring klov , I found solution for this. It seems Klov also tracks all test's status and if test is ran multiple times , it makes mutiple entries for same test which again cause same issue that it can not be used as final status . I see that in klov , you have added functionality to add cause to failed tests (Script Issue etc and we can create our own issue type also).

Can we enhance klov to add tags to all tests (manually using UI,even for passed and skipped test) and then see tests that belong to that tag. Advantage is after entire execution , we can create tag Final_Status and attach this tag to all tests where their status can be taken as final. This means klov will have entire history of all build runs but we can also see final status for that project. Note , it is necessary that once we select particular tag , it should show all tests of that project (not build , as everyone will create separate project for each release regression). This mean Final_Status tag will allow to see final status of all tests for that release regression.

Please think , this will be really good enhancement as it will allow us to share klov with other stakeholders where they can see final status of particular project.

@stale
Copy link

stale bot commented Jul 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

@stale
Copy link

stale bot commented Jul 25, 2019

This issue has been automatically closed because of inactivity.

@stale stale bot closed this as completed Jul 25, 2019
@anshooarora
Copy link
Member

Feature available starting 4.10.0-SNAPSHOT, see #103 for details.

@sampada-datey
Copy link

test-output generates testng extent report but unfortunately github workflow only overwrites target/surefire-reports can we not have test-output folder overwritten after execution of test ?
I am only able to update target/surefire-reports and not test-output folder which actually works in eclipse

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

5 participants