question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table keywords should not log source if they fail

See original GitHub issue

Currently table related keywords logs the page source and user can define the level on which the logging happens. But the logging the source and defining logging level are not useful features. It would be better to remove the source logging and logging level definition. Instead it might be useful to allow user to define custom error message, if they want, if the table related keywords fails.

Example Table Cell Should Contain keyword signature should have arguments: locator, row, column, expected and message and here is an example:

| Table Cell Should Contain | xpath: //table | row=1 | column=2 | expected=foo | message=User defined error message | 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aaltatcommented, Nov 8, 2017

Generally I feel that logging the source is useless, although there might be some rare cases where it could be useful. I have to say that my run on failure keyword, maximize the browser, take screenshot and logs the source, but I usually never actually look at the source dump. Therefore I feel that we should remove the source logging from all keywords. Also unifying the message argument is a good idea.

It would be good idea to ask also other users opinion on the matter after the 3.0 release.

0reactions
aaltatcommented, Dec 8, 2018

Closing this issue because this is replaced by #1259

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax error due to using a reserved word as a table or ...
The Problem. In MySQL, certain words like SELECT , INSERT , DELETE etc. are reserved words. Since they have a special meaning, MySQL...
Read more >
Keyword Search Expressions - Sumo Logic Docs
The keyword expression can include built-in metadata fields such as _collector , _sourceCategory , _sourceName , and _sourceHost as well as custom log...
Read more >
Common SQL syntax errors and how to resolve them
In this article, we are going to describe some of the most common SQL syntax errors, and explains how you can resolve these...
Read more >
9.3 Keywords and Reserved Words - MySQL :: Developer Zone
Keywords are words that have significance in SQL. Certain keywords, such as SELECT , DELETE , or BIGINT , are reserved and require...
Read more >
Selenium2Library - Robot Framework
If an element does not have an id or the id is not stable, ... If this keyword fails, it automatically logs the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found