-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Custom test settings a.k.a. test metadata #4409
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
Comments
I assume you mean name-value pairs like with suite metadata? Tests already have tags and documentation and I don't think them getting such metadata would add too much value. Could you clarify what benefits it would give over using tags and doc? What we can consider is enhancing tags so that you could use them as name value pairs like The main reason we added metadata, not tags, to suites was that we wanted to make it explicit that tags are always related to tests and metadata to suites. We have, however, already long time ago added keyword tags so nowadays it's not only tests that have tags. Another reason to add metadata for suites was that it's not clear that |
Hi, thanks for reply.
E.g. PhotoScanner eforms contract professions onepagerForNa productRecommendation needAnalysisByRole can be Documentation. As I read your comment I realises that I could be able to use But again from my point of view tags are not something I want to bend to serve my purpose. From the documentation point of view, this makes bigger sense. At the end I just want to point out some of the information, and key/value pairs looks like a good idea. For me it is much more readable to have (in log.html):
than
Extending either tags or documentation with information like URL, USER, PASSWORD etc is not so readable. But the beauty is in the eye of the beholder. To be honest I didn't realise that I can append information to Documentation :) But this key/value pairs is something that |
Hello all together, I stumbled across the need for test metadata recently, too. The background is that I need robot test cases to map to test requirements in a test management tool (HP ALM, for instance). Test management tools use all kind of metadata and all kind of styles that sometimes violate styles of robot tags. For instance, some metadata is case sensitive, but robotidy formats by default all tags to lowercase - which is good style, imho. I do not want to deactive that rule for tags only because i mix metadata in to the tags. Because when i execute all test cases with a certain tag, i don't want to remember casing. I need test metadata that is not really processed by Robot itself, but that is availabe through robot api to tools like listeners and result visitors. Using tags, which are an vital part of Robot Framework specs, are for me not suitable, as the metadata add a lot of noise to tags. In a later iteration, I may also consider inheriting of metadata, but that is for later. For now, it would help tremendously, if test cases would support metadata. |
As discussed in the Roadmap-Workgroup here the conclusion of the
Feature descriptionIt shall be possible to define Custom Test/Task Settings via CLI so that the parser can parse these custom settings properly and IDE-Plugins like RobotCode can offer code completion. In the next step, we could also introduce Custom Suite Settings which also could be configured via cli/parser so that also these custom settings could be proposed by code completion, which would be a clear advantage compared to Suite Metadata. Also Custom Settings on suite and test level could be typed to allow different value types. *** Test Cases ***
Test
[Documentation] Das ist doku
[Tags] 1 2 3 4 jira:itbpm-89012 os:win
[Timeout] 100 sec
[Setup] Log Setup
[Teardown] Log Teardown
[Error Handler] Take Screenshot failure_${TEST_NAME}.png
[Issue] \#4409
Log test In the first mvp this could just be logged in By adding typed Custom Test/Task/Suite Settings to the parser and the running and result model, many new features become possible We (imbus) together with a customer are interested to contribute that feature and wish to discuss it further. |
Just as a thought for a future extension and so I don't forget it, However, this would probably be more of a kind of plugin API 🤔 |
Very quick comments:
|
i do agree! lets see when it can be implemented and if it is after 7.1 we can do a 7.2. sounds all good |
I moved this to RF 7.2 scope to keep the RF 7.1 scope smallish with an idea to get it released in July or early August. If you think you can implement this before that, we can move it back to RF 7.1 scope. Before that we needed to agree on the remaining open design decisions, though. We can have a call or a Slack discussion if needed. |
I have a meeting with the customer tomorrow who wants to implement it with us. We want to discuss some details and look at where we need to make code adjustments and do some planning. |
I'm available tomorrow the whole day. Then again next week, but when depends on the schedule of my kids football cup. The week after ought to be possible as well. Please suggest times that are good for all Daniels and I try to pick one that's good for me too. |
We had a RF 7.2 planning session today where we agreed to keep this in RF 7.2 scope and also discussed a bit about the design. Here are some design decisions based on the various discussions. As you can see, some design decisions are still open.
|
It would be great If we have keyword that will be able to set
test metadata
to test report. This is not issue, when you are running tests using robot, but when you're running tests using pabot thesuite metadata
is not enough to cover all the information that should be visible at the end of the run.Not mentioning that rebot merge will mess suite metadata when they are added dynamically.
I'm testing insurance systems and when i'm running tests I get a lot of different URLs where insurances are created. Each testcase have its own url and I'm looking for way how to
expose
that url in the report.For now I have custom keyword that logs this url to report, but it is not sufficient as you need to open test steps, open keyword and look for url there. So it should be really cool, if there are any
test metadata
that I can use to extract information and show them at on place in reportThe text was updated successfully, but these errors were encountered: