allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

Add an ability to copy test case start-end timings to clipboard

Open AlexanderPoleschuk opened this issue 8 years ago • 8 comments

I'm submitting a ...

  • [x] feature request

What is the current behavior?

Test case details view has only an ability to view test case start-end values as a tooltip

What is the expected behavior?

It'd be nice to have an ability to copy info(start-end) from the tooltip to clipboard

What is the motivation / use case for changing the behavior?

Usability reasons

Please tell us about your environment:

Other information

2017-06-12_16-29-50

AlexanderPoleschuk avatar Jun 12 '17 13:06 AlexanderPoleschuk

@baev Hi i was looking on this issue but i see that its been discused (edit: and closed) in https://github.com/allure-framework/allure2/pull/733. Is it still open ?

jk816vu avatar Nov 26 '21 12:11 jk816vu

yes as far as I know

baev avatar Nov 26 '21 12:11 baev

@baev so can i work on it? And how it should look? something like this ? image

jk816vu avatar Nov 26 '21 12:11 jk816vu

And what should be in clipboard after pressing button: data-tooltip a.k.a. "10/25/2021 17:55:12-17:55:13" ?

jk816vu avatar Nov 26 '21 13:11 jk816vu

summon @just-boris

the other option would be to make duration clickable and copy contents on click

baev avatar Nov 26 '21 13:11 baev

Hi @baev and @just-boris i just made it work like clickable span like baev said. Can you check it ?

jk816vu avatar Nov 26 '21 14:11 jk816vu

I am wondering why is this important to make the time copyable. You can always select the text and press ctrl+c on any content. Test suite and case name make sense, because they are the most used. But what about time?

Also timestamps are stored in the different formats in different tools. Copying the current human readable option will not help looking it up with any logs. Especially the implementation from @jk816vu with  –  in the middle of copyable text

just-boris avatar Nov 29 '21 18:11 just-boris

Ok, noted but why is it open issue again?

jk816vu avatar Nov 30 '21 08:11 jk816vu