diff options
author | nags <nags@nags-desktop.(none)> | 2009-07-30 20:29:15 -0700 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2009-07-30 20:29:15 -0700 |
commit | 953dcf25d39be426b583644b9e13f1f72174f391 (patch) | |
tree | 1dd65fbbe843e038308990d7632b9eb88ebf403e | |
parent | 8569ff46a6b82aed3702877ccf714338f46526b9 (diff) |
2009-07-30 Nagappan Alagappan <nagappan@gmail.com>
* ldtp.py (doesrowexist): Fixes bug 588674, It would be nice if
doesrowexist would look for partial matches.
-rw-r--r-- | python/ChangeLog | 5 | ||||
-rw-r--r-- | python/ldtp.py | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/python/ChangeLog b/python/ChangeLog index debdb8c..eb693ad 100644 --- a/python/ChangeLog +++ b/python/ChangeLog @@ -1,3 +1,8 @@ +2009-07-30 Nagappan Alagappan <nagappan@gmail.com> + + * ldtp.py (doesrowexist): Fixes bug 588674, It would be nice if + doesrowexist would look for partial matches. + 2009-07-27 Nagappan Alagappan <nagappan@gmail.com> * ldtp.py (onwindowcreate): Fixed bug 586291 – Subsequent tests diff --git a/python/ldtp.py b/python/ldtp.py index 0e071ca..6ab97d1 100644 --- a/python/ldtp.py +++ b/python/ldtp.py @@ -2927,15 +2927,17 @@ def verifycheckrow (windowName, componentName, rowIndex, columnIndex = 0): except LdtpExecutionError: return 0 -def doesrowexist (windowName, componentName, rowText): +def doesrowexist (windowName, componentName, rowText, partialMatch = False): """ Checks whether the table contains any row with any of its cell containing the given string as its value.Please note that it checks for an exact match. - INPUT: doesrowexist ('<window name>', '<table name>', '<string to be matched>') + INPUT: doesrowexist ('<window name>', '<table name>', '<string to be matched>' \ + [, do partial check]) OUTPUT: Returns 1 if there are rows with the given string in any of its cell else 0. """ try: _requestId = threading.currentThread ().getName () + str (command.DOESROWEXIST) - _message = generatexml (command.DOESROWEXIST, _requestId, windowName, componentName, rowText) + _message = generatexml (command.DOESROWEXIST, _requestId, windowName, + componentName, rowText, str(int(partialMatch))) sendpacket (_message) _responseStatus, _responseData = getresponse (_requestId) if _responseStatus [0] != 0: |