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

[Question] How to log query result to robotframework report? #147

Closed
4nif opened this issue Sep 9, 2021 · 3 comments
Closed

[Question] How to log query result to robotframework report? #147

4nif opened this issue Sep 9, 2021 · 3 comments
Assignees
Milestone

Comments

@4nif
Copy link

4nif commented Sep 9, 2021

Hi

Is it possible to enable query log in Robotframework report with the table header?
Using Query keyword only log the result without header

Thanks

@lucielavickova-tesena
Copy link

Voting up. I would also appreciate getting the SQL query result including the column headers.

@bhirsz
Copy link
Member

bhirsz commented Nov 9, 2023

The query results are often hard to read. I believe the best format would be HTML table. It is easy to generate without using external dependencies and it displays well in the RF log. We could add extra param like 'log_results=True' to handle it. There could be additional 'log_head' param to defined how much rows we want to log (ie default max 50, set to 0 to print all).

@amochin amochin modified the milestones: v1.4.0, v1.4.1 Nov 20, 2023
@bhirsz bhirsz self-assigned this Nov 23, 2023
@amochin amochin modified the milestones: v1.4.2, 1.5.0 Dec 19, 2023
@amochin amochin assigned amochin and unassigned bhirsz Aug 13, 2024
amochin added a commit that referenced this issue Aug 14, 2024
@amochin amochin closed this as completed in 261c32a Oct 1, 2024
@amochin
Copy link
Collaborator

amochin commented Oct 1, 2024

Implemented in version 2.0.0.
Logging looks like this:
image

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

No branches or pull requests

4 participants