2 new revisions:
Revision: 7697f4f24206
Branch: default
Author: Jussi Malinen <jussi.ao.mali...@gmail.com>
Date: Tue Sep 17 13:10:49 2013 UTC
Log: tests for suppressing exception type in error message
http://code.google.com/p/robotframework/source/detail?r=7697f4f24206
Revision: b1b8596a60f9
Branch: default
Author: Jussi Malinen <jussi.ao.mali...@gmail.com>
Date: Tue Sep 17 13:32:39 2013 UTC
Log: moved error_msg_and_details suite to more appropriate
test_libraries f...
http://code.google.com/p/robotframework/source/detail?r=b1b8596a60f9
==============================================================================
Revision: 7697f4f24206
Branch: default
Author: Jussi Malinen <jussi.ao.mali...@gmail.com>
Date: Tue Sep 17 13:10:49 2013 UTC
Log: tests for suppressing exception type in error message
http://code.google.com/p/robotframework/source/detail?r=7697f4f24206
Modified:
/atest/robot/core/error_msg_and_details.txt
/atest/testdata/core/error_msg_and_details.txt
/atest/testresources/testlibs/ExampleJavaLibrary.class
/atest/testresources/testlibs/ExampleJavaLibrary.java
/atest/testresources/testlibs/ExampleLibrary.py
=======================================
--- /atest/robot/core/error_msg_and_details.txt Fri Jun 8 10:05:37 2012 UTC
+++ /atest/robot/core/error_msg_and_details.txt Tue Sep 17 13:10:49 2013 UTC
@@ -13,6 +13,13 @@
[Tags] jybot
Generic Failure In Java bar != foo 2
+Exception Type is Removed with Exception Attribute
+ Exception Name Suppressed in Error Message No Exception Name
+
+Exception Type is Removed with Exception Attribute in Java
+ [Tags] jybot
+ Exception Name Suppressed in Error Message In Java No Exception Name
+
Exception Type is Included In Non-Generic Failures
Non Generic Failure FloatingPointError: Too Large A Number !!
=======================================
--- /atest/testdata/core/error_msg_and_details.txt Fri Jun 8 10:05:37 2012
UTC
+++ /atest/testdata/core/error_msg_and_details.txt Tue Sep 17 13:10:49 2013
UTC
@@ -13,6 +13,10 @@
Set To Hashtable ${ht} foo bar
Check In Hashtable ${ht} foo foo
+Exception Name Suppressed in Error Message
+ [Documentation] FAIL No Exception Name
+ Fail with suppressed exception name No Exception Name
+
Non Generic Failure
[Documentation] FAIL FloatingPointError: Too Large A Number !!
Exception FloatingPointError Too Large A Number !!
@@ -21,6 +25,10 @@
[Documentation] FAIL ArrayStoreException: My message
Java Exception My message
+Exception Name Suppressed in Error Message In Java
+ [Documentation] FAIL No Exception Name
+ Fail with suppressed exception name in Java No Exception Name
+
Python Exception With Non-String Message
[Documentation] FAIL ValueError: ['a', 'b', (1, 2), None, {'a': 1}]
${msg} = Evaluate ['a', 'b', (1, 2), None, {'a': 1}]
=======================================
--- /atest/testresources/testlibs/ExampleJavaLibrary.class Tue May 14
12:33:04 2013 UTC
+++ /atest/testresources/testlibs/ExampleJavaLibrary.class Tue Sep 17
13:10:49 2013 UTC
Binary file, no diff available.
=======================================
--- /atest/testresources/testlibs/ExampleJavaLibrary.java Thu Sep 29
05:44:06 2011 UTC
+++ /atest/testresources/testlibs/ExampleJavaLibrary.java Tue Sep 17
13:10:49 2013 UTC
@@ -148,4 +148,17 @@
}
};
}
+
+ public void failWithSuppressedExceptionNameInJava(String msg) {
+ throw new MyJavaException(msg);
+ }
+
+
+ public class MyJavaException extends RuntimeException {
+ public static final boolean ROBOT_SUPPRESS_NAME = true;
+
+ public MyJavaException(String msg) {
+ super(msg);
+ }
+ }
}
=======================================
--- /atest/testresources/testlibs/ExampleLibrary.py Wed Sep 19 23:25:16
2012 UTC
+++ /atest/testresources/testlibs/ExampleLibrary.py Tue Sep 17 13:10:49
2013 UTC
@@ -147,6 +147,9 @@
def __unicode__(self): raise RuntimeError
return FailiningStr(), FailiningUnicode()
+ def fail_with_suppressed_exception_name(self, msg):
+ raise MyException(msg)
+
class _MyIterable(object):
def __init__(self, *values):
@@ -157,3 +160,8 @@
class _MyList(list):
pass
+
+
+class MyException(AssertionError):
+
+ ROBOT_SUPPRESS_NAME = True
==============================================================================
Revision: b1b8596a60f9
Branch: default
Author: Jussi Malinen <jussi.ao.mali...@gmail.com>
Date: Tue Sep 17 13:32:39 2013 UTC
Log: moved error_msg_and_details suite to more appropriate
test_libraries folder. Also fixed tests that broke because example
libraries have extra keywords now
http://code.google.com/p/robotframework/source/detail?r=b1b8596a60f9
Added:
/atest/robot/test_libraries/error_msg_and_details.txt
/atest/testdata/test_libraries/error_msg_and_details.txt
Deleted:
/atest/robot/core/error_msg_and_details.txt
/atest/testdata/core/error_msg_and_details.txt
Modified:
/atest/robot/test_libraries/libraries_extending_existing_classes.txt
/atest/robot/test_libraries/library_imports.txt
=======================================
--- /dev/null
+++ /atest/robot/test_libraries/error_msg_and_details.txt Tue Sep 17
13:32:39 2013 UTC
@@ -0,0 +1,118 @@
+*** Setting ***
+Suite Setup Run Tests --loglevel DEBUG
test_libraries/error_msg_and_details.txt
+Force Tags regression
+Default Tags pybot jybot
+Resource atest_resource.txt
+Test Template Verify Test Case And Error In Log
+
+*** Test Case ***
+Exception Type is Removed From Generic Failures
+ Generic Failure foo != bar
+
+Exception Type is Removed From Generic Java Failures
+ [Tags] jybot
+ Generic Failure In Java bar != foo 2
+
+Exception Type is Removed with Exception Attribute
+ Exception Name Suppressed in Error Message No Exception Name
+
+Exception Type is Removed with Exception Attribute in Java
+ [Tags] jybot
+ Exception Name Suppressed in Error Message In Java No Exception Name
+
+Exception Type is Included In Non-Generic Failures
+ Non Generic Failure FloatingPointError: Too Large A Number !!
+
+Exception Type is Included In Non-Generic Java Failures
+ [Tags] jybot
+ Non Generic Failure In Java ArrayStoreException: My message
+
+Message Is Got Correctly If Python Exception Has Non-String Message
+ Python Exception With Non-String Message ValueError: ['a', 'b', (1,
2), None, {'a': 1}] 1
+
+Message Is Got Correctly If Python Exception Has 'None' Message
+ Python Exception With 'None' Message AssertionError
+
+Multiline Error
+ ${TESTNAME} First line\n2nd\n3rd and last
+
+Multiline Java Error
+ [Tags] jybot
+ ${TESTNAME} ArrayStoreException: First line\n2nd\n3rd and last
+
+Multiline Error With CRLF
+ ${TESTNAME} First line\n2nd\n3rd and last
+
+Message Is Got Correctly If Java Exception Has 'null' Message
+ [Tags] jybot
+ Java Exception With 'null' Message ArrayStoreException
+
+Message And Internal Trace Are Removed From Details When Exception In
Library
+ [Template] NONE
+ ${tc} = Verify Test Case And Error In Log Generic Failure
foo != bar
+ Verify Python Traceback ${tc.kws[0].msgs[1]} exception raise
exception, msg
+ ${tc} = Verify Test Case And Error In Log Non Generic Failure
FloatingPointError: Too Large A Number !!
+ Verify Python Traceback ${tc.kws[0].msgs[1]} exception raise
exception, msg
+
+Message And Internal Trace Are Removed From Details When Exception In Java
Library
+ [Tags] jybot
+ [Template] NONE
+ ${tc} = Verify Test Case And Error In Log Generic Failure In
Java bar != foo 2
+ Verify Java Stack Trace ${tc.kws[2].msgs[1]}
java.lang.AssertionError: \ ExampleJavaLibrary.checkInHashtable
+ ${tc} = Verify Test Case And Error In Log Non Generic Failure In
Java ArrayStoreException: My message
+ Verify Java Stack Trace ${tc.kws[0].msgs[1]}
java.lang.ArrayStoreException: \ ExampleJavaLibrary.exception
ExampleJavaLibrary.javaException
+
+Message and Internal Trace Are Removed From Details When Exception In
External Code
+ [Template] NONE
+ ${tc} = Verify Test Case And Error In Log External Failure
UnboundLocalError: Raised from an external object!
+ Verify Python Traceback ${tc.kws[0].msgs[1]}
external_exception ObjectToReturn('failure').exception(name, msg)
exception raise exception, msg
+
+Message and Internal Trace Are Removed From Details When Exception In
External Java Code
+ [Tags] jybot
+ [Template] NONE
+ ${tc} = Verify Test Case And Error In Log External Failure In
Java IllegalArgumentException: Illegal initial capacity: -1
+ Verify Java Stack Trace ${tc.kws[0].msgs[1]}
java.lang.IllegalArgumentException: \ java.util.HashMap.
java.util.HashMap. JavaObject.exception ExampleJavaLibrary
+
+No Details For Timeouts
+ [Template] Verify Test Case, Error In Log And No Details
+ Timeout Expires Test timeout 200 milliseconds exceeded. ${1}
+
+No Details For Non Existing Keywords
+ [Template] Verify Test Case, Error In Log And No Details
+ Non existing Keyword No keyword with name 'Non Existing Keyword'
found.
+
+No Details For Non Existing Variables
+ [Template] Verify Test Case, Error In Log And No Details
+ Non Existing Scalar Variable Non-existing variable '\${non
existing}'.
+ Non Existing List Variable Non-existing variable '\@{non existing}'.
+
+*** Keyword ***
+Verify Test Case And Error In Log
+ [Arguments] ${name} ${error} ${index}=0 ${msg}=0
+ ${tc} = Check Test Case ${name}
+ Check Log Message ${tc.kws[${index}].msgs[${msg}]} ${error}
FAIL
+ [Return] ${tc}
+
+Verify Test Case, Error In Log And No Details
+ [Arguments] ${name} ${error} ${msg_index}=${0}
+ ${tc} = Verify Test Case And Error In Log ${name} ${error}
0 ${msg_index}
+ Length Should Be ${tc.kws[0].msgs} ${msg_index + 1}
+
+Verify Python Traceback
+ [Arguments] ${msg} @{funtions_and_texts}
+ ${exp} = Set Variable Traceback \\(most recent call last\\):
+ @{funtions_and_texts} = Regexp Escape @{funtions_and_texts}
+ : FOR ${func} ${text} IN @{funtions_and_texts}
+ \ ${exp} = Set Variable ${exp}\n \\s+File ".*", line \\d+, in
${func}\n \\s+${text}
+ Should Match Regexp ${msg.message} ${exp}
+ Should Be Equal ${msg.level} DEBUG
+
+Verify Java Stack Trace
+ [Arguments] ${msg} ${exception} @{functions}
+ ${exp} = Regexp Escape ${exception}
+ : FOR ${func} IN @{functions}
+ \ ${func} = Regexp Escape ${func}
+ \ ${exp} = Set Variable ${exp}\n \\s+at ${func}.+
+ Should Match Regexp ${msg.message} ${exp}
+ Should Be Equal ${msg.level} DEBUG
+
=======================================
--- /dev/null
+++ /atest/testdata/test_libraries/error_msg_and_details.txt Tue Sep 17
13:32:39 2013 UTC
@@ -0,0 +1,81 @@
+*** Setting ***
+Library ExampleLibrary
+Library ExampleJavaLibrary
+
+*** Test Case ***
+Generic Failure
+ [Documentation] FAIL foo != bar
+ Exception AssertionError foo != bar
+
+Generic Failure In Java
+ [Documentation] FAIL bar != foo
+ ${ht} = Get Hashtable
+ Set To Hashtable ${ht} foo bar
+ Check In Hashtable ${ht} foo foo
+
+Exception Name Suppressed in Error Message
+ [Documentation] FAIL No Exception Name
+ Fail with suppressed exception name No Exception Name
+
+Non Generic Failure
+ [Documentation] FAIL FloatingPointError: Too Large A Number !!
+ Exception FloatingPointError Too Large A Number !!
+
+Non Generic Failure In Java
+ [Documentation] FAIL ArrayStoreException: My message
+ Java Exception My message
+
+Exception Name Suppressed in Error Message In Java
+ [Documentation] FAIL No Exception Name
+ Fail with suppressed exception name in Java No Exception Name
+
+Python Exception With Non-String Message
+ [Documentation] FAIL ValueError: ['a', 'b', (1, 2), None, {'a': 1}]
+ ${msg} = Evaluate ['a', 'b', (1, 2), None, {'a': 1}]
+ Exception ValueError ${msg}
+
+Python Exception With 'None' Message
+ [Documentation] FAIL AssertionError
+ Exception AssertionError ${None}
+
+Java Exception With 'null' Message
+ [Documentation] FAIL ArrayStoreException
+ Java Exception
+
+Multiline Error
+ [Documentation] FAIL First line\n2nd\n3rd and last
+ Exception AssertionError First line\n2nd\n3rd and last
+
+Multiline Java Error
+ [Documentation] FAIL ArrayStoreException: First line\n2nd\n3rd and
last
+ Java Exception First line\n2nd\n3rd and last
+
+Multiline Error With CRLF
+ [Documentation] FAIL First line\n2nd\n3rd and last
+ Exception AssertionError First line\r\n2nd\r\n3rd and last
+
+External Failure
+ [Documentation] FAIL UnboundLocalError: Raised from an external
object!
+ External Exception UnboundLocalError Raised from an external
object!
+
+External failure in Java
+ [Documentation] FAIL IllegalArgumentException: Illegal initial
capacity: -1
+ External Java Exception
+
+Timeout Expires
+ [Documentation] FAIL Test timeout 200 milliseconds exceeded.
+ [Timeout] 200 ms
+ Sleep 1
+
+Non existing Keyword
+ [Documentation] FAIL No keyword with name 'Non Existing Keyword'
found.
+ Non Existing Keyword
+
+Non Existing Scalar Variable
+ [Documentation] FAIL Non-existing variable '\${non existing}'.
+ Log ${non existing}
+
+Non Existing List Variable
+ [Documentation] FAIL Non-existing variable '\@{non existing}'.
+ Log Many @{non existing}.
+
=======================================
--- /atest/robot/core/error_msg_and_details.txt Tue Sep 17 13:10:49 2013 UTC
+++ /dev/null
@@ -1,118 +0,0 @@
-*** Setting ***
-Suite Setup Run Tests --loglevel DEBUG
core/error_msg_and_details.txt
-Force Tags regression
-Default Tags pybot jybot
-Resource atest_resource.txt
-Test Template Verify Test Case And Error In Log
-
-*** Test Case ***
-Exception Type is Removed From Generic Failures
- Generic Failure foo != bar
-
-Exception Type is Removed From Generic Java Failures
- [Tags] jybot
- Generic Failure In Java bar != foo 2
-
-Exception Type is Removed with Exception Attribute
- Exception Name Suppressed in Error Message No Exception Name
-
-Exception Type is Removed with Exception Attribute in Java
- [Tags] jybot
- Exception Name Suppressed in Error Message In Java No Exception Name
-
-Exception Type is Included In Non-Generic Failures
- Non Generic Failure FloatingPointError: Too Large A Number !!
-
-Exception Type is Included In Non-Generic Java Failures
- [Tags] jybot
- Non Generic Failure In Java ArrayStoreException: My message
-
-Message Is Got Correctly If Python Exception Has Non-String Message
- Python Exception With Non-String Message ValueError: ['a', 'b', (1,
2), None, {'a': 1}] 1
-
-Message Is Got Correctly If Python Exception Has 'None' Message
- Python Exception With 'None' Message AssertionError
-
-Multiline Error
- ${TESTNAME} First line\n2nd\n3rd and last
-
-Multiline Java Error
- [Tags] jybot
- ${TESTNAME} ArrayStoreException: First line\n2nd\n3rd and last
-
-Multiline Error With CRLF
- ${TESTNAME} First line\n2nd\n3rd and last
-
-Message Is Got Correctly If Java Exception Has 'null' Message
- [Tags] jybot
- Java Exception With 'null' Message ArrayStoreException
-
-Message And Internal Trace Are Removed From Details When Exception In
Library
- [Template] NONE
- ${tc} = Verify Test Case And Error In Log Generic Failure
foo != bar
- Verify Python Traceback ${tc.kws[0].msgs[1]} exception raise
exception, msg
- ${tc} = Verify Test Case And Error In Log Non Generic Failure
FloatingPointError: Too Large A Number !!
- Verify Python Traceback ${tc.kws[0].msgs[1]} exception raise
exception, msg
-
-Message And Internal Trace Are Removed From Details When Exception In Java
Library
- [Tags] jybot
- [Template] NONE
- ${tc} = Verify Test Case And Error In Log Generic Failure In
Java bar != foo 2
- Verify Java Stack Trace ${tc.kws[2].msgs[1]}
java.lang.AssertionError: \ ExampleJavaLibrary.checkInHashtable
- ${tc} = Verify Test Case And Error In Log Non Generic Failure In
Java ArrayStoreException: My message
- Verify Java Stack Trace ${tc.kws[0].msgs[1]}
java.lang.ArrayStoreException: \ ExampleJavaLibrary.exception
ExampleJavaLibrary.javaException
-
-Message and Internal Trace Are Removed From Details When Exception In
External Code
- [Template] NONE
- ${tc} = Verify Test Case And Error In Log External Failure
UnboundLocalError: Raised from an external object!
- Verify Python Traceback ${tc.kws[0].msgs[1]}
external_exception ObjectToReturn('failure').exception(name, msg)
exception raise exception, msg
-
-Message and Internal Trace Are Removed From Details When Exception In
External Java Code
- [Tags] jybot
- [Template] NONE
- ${tc} = Verify Test Case And Error In Log External Failure In
Java IllegalArgumentException: Illegal initial capacity: -1
- Verify Java Stack Trace ${tc.kws[0].msgs[1]}
java.lang.IllegalArgumentException: \ java.util.HashMap.
java.util.HashMap. JavaObject.exception ExampleJavaLibrary
-
-No Details For Timeouts
- [Template] Verify Test Case, Error In Log And No Details
- Timeout Expires Test timeout 200 milliseconds exceeded. ${1}
-
-No Details For Non Existing Keywords
- [Template] Verify Test Case, Error In Log And No Details
- Non existing Keyword No keyword with name 'Non Existing Keyword'
found.
-
-No Details For Non Existing Variables
- [Template] Verify Test Case, Error In Log And No Details
- Non Existing Scalar Variable Non-existing variable '\${non
existing}'.
- Non Existing List Variable Non-existing variable '\@{non existing}'.
-
-*** Keyword ***
-Verify Test Case And Error In Log
- [Arguments] ${name} ${error} ${index}=0 ${msg}=0
- ${tc} = Check Test Case ${name}
- Check Log Message ${tc.kws[${index}].msgs[${msg}]} ${error}
FAIL
- [Return] ${tc}
-
-Verify Test Case, Error In Log And No Details
- [Arguments] ${name} ${error} ${msg_index}=${0}
- ${tc} = Verify Test Case And Error In Log ${name} ${error}
0 ${msg_index}
- Length Should Be ${tc.kws[0].msgs} ${msg_index + 1}
-
-Verify Python Traceback
- [Arguments] ${msg} @{funtions_and_texts}
- ${exp} = Set Variable Traceback \\(most recent call last\\):
- @{funtions_and_texts} = Regexp Escape @{funtions_and_texts}
- : FOR ${func} ${text} IN @{funtions_and_texts}
- \ ${exp} = Set Variable ${exp}\n \\s+File ".*", line \\d+, in
${func}\n \\s+${text}
- Should Match Regexp ${msg.message} ${exp}
- Should Be Equal ${msg.level} DEBUG
-
-Verify Java Stack Trace
- [Arguments] ${msg} ${exception} @{functions}
- ${exp} = Regexp Escape ${exception}
- : FOR ${func} IN @{functions}
- \ ${func} = Regexp Escape ${func}
- \ ${exp} = Set Variable ${exp}\n \\s+at ${func}.+
- Should Match Regexp ${msg.message} ${exp}
- Should Be Equal ${msg.level} DEBUG
-
=======================================
--- /atest/testdata/core/error_msg_and_details.txt Tue Sep 17 13:10:49 2013
UTC
+++ /dev/null
@@ -1,81 +0,0 @@
-*** Setting ***
-Library ExampleLibrary
-Library ExampleJavaLibrary
-
-*** Test Case ***
-Generic Failure
- [Documentation] FAIL foo != bar
- Exception AssertionError foo != bar
-
-Generic Failure In Java
- [Documentation] FAIL bar != foo
- ${ht} = Get Hashtable
- Set To Hashtable ${ht} foo bar
- Check In Hashtable ${ht} foo foo
-
-Exception Name Suppressed in Error Message
- [Documentation] FAIL No Exception Name
- Fail with suppressed exception name No Exception Name
-
-Non Generic Failure
- [Documentation] FAIL FloatingPointError: Too Large A Number !!
- Exception FloatingPointError Too Large A Number !!
-
-Non Generic Failure In Java
- [Documentation] FAIL ArrayStoreException: My message
- Java Exception My message
-
-Exception Name Suppressed in Error Message In Java
- [Documentation] FAIL No Exception Name
- Fail with suppressed exception name in Java No Exception Name
-
-Python Exception With Non-String Message
- [Documentation] FAIL ValueError: ['a', 'b', (1, 2), None, {'a': 1}]
- ${msg} = Evaluate ['a', 'b', (1, 2), None, {'a': 1}]
- Exception ValueError ${msg}
-
-Python Exception With 'None' Message
- [Documentation] FAIL AssertionError
- Exception AssertionError ${None}
-
-Java Exception With 'null' Message
- [Documentation] FAIL ArrayStoreException
- Java Exception
-
-Multiline Error
- [Documentation] FAIL First line\n2nd\n3rd and last
- Exception AssertionError First line\n2nd\n3rd and last
-
-Multiline Java Error
- [Documentation] FAIL ArrayStoreException: First line\n2nd\n3rd and
last
- Java Exception First line\n2nd\n3rd and last
-
-Multiline Error With CRLF
- [Documentation] FAIL First line\n2nd\n3rd and last
- Exception AssertionError First line\r\n2nd\r\n3rd and last
-
-External Failure
- [Documentation] FAIL UnboundLocalError: Raised from an external
object!
- External Exception UnboundLocalError Raised from an external
object!
-
-External failure in Java
- [Documentation] FAIL IllegalArgumentException: Illegal initial
capacity: -1
- External Java Exception
-
-Timeout Expires
- [Documentation] FAIL Test timeout 200 milliseconds exceeded.
- [Timeout] 200 ms
- Sleep 1
-
-Non existing Keyword
- [Documentation] FAIL No keyword with name 'Non Existing Keyword'
found.
- Non Existing Keyword
-
-Non Existing Scalar Variable
- [Documentation] FAIL Non-existing variable '\${non existing}'.
- Log ${non existing}
-
-Non Existing List Variable
- [Documentation] FAIL Non-existing variable '\@{non existing}'.
- Log Many @{non existing}.
-
=======================================
--- /atest/robot/test_libraries/libraries_extending_existing_classes.txt
Sun Jan 1 23:03:52 2012 UTC
+++ /atest/robot/test_libraries/libraries_extending_existing_classes.txt
Tue Sep 17 13:32:39 2013 UTC
@@ -18,7 +18,7 @@
Check Test Case Keyword In Python Class Using Method From Parent Class
Message Of Importing Library Should Be In Syslog
- Check Syslog Contains Imported library 'ExtendPythonLib' with
arguments [ ] (version <unknown>, class type, testcase scope, 30 keywords)
+ Check Syslog Contains Imported library 'ExtendPythonLib' with
arguments [ ] (version <unknown>, class type, testcase scope, 31 keywords)
Keyword From Java Class Extended By Python Class
[Tags] jybot
@@ -38,7 +38,7 @@
Message Of Importing Library Extending Java Class Should Be In Syslog
[Tags] jybot
- Check Syslog Contains Imported library 'extendingjava.ExtendJavaLib'
with arguments [ ] (version <unknown>, class type, global scope, 24
keywords)
+ Check Syslog Contains Imported library 'extendingjava.ExtendJavaLib'
with arguments [ ] (version <unknown>, class type, global scope, 25
keywords)
Using Methods From Java Parents Should Not Create Handlers Starting With
Super__
[Documentation] At least in Jython 2.2, when a class implemented in
python inherits a java class, and the python class uses a method from the
java class, the python instance ends up having an attribute
super__methodname, where methodname is the method from parent class. We
don't want to create keywords from these, even though they are real methods.
=======================================
--- /atest/robot/test_libraries/library_imports.txt Sun Jan 1 23:03:52
2012 UTC
+++ /atest/robot/test_libraries/library_imports.txt Tue Sep 17 13:32:39
2013 UTC
@@ -24,7 +24,7 @@
... from '${base}${/}libmodule
Number Of Keywords In Imported Library Is Reported In Syslog
- Check Syslog Contains | INFO \ | Imported library 'ExampleLibrary'
with arguments [ ] (version <unknown>, class type, testcase scope, 28
keywords)
+ Check Syslog Contains | INFO \ | Imported library 'ExampleLibrary'
with arguments [ ] (version <unknown>, class type, testcase scope, 29
keywords)
Check Syslog Contains | INFO \ | Imported
library 'libmodule.LibClass1' with arguments [ ] (version <unknown>, class
type, testcase scope, 1 keywords)
Warning Should Be Written To Syslog If Library Contains No Keywords
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.