Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Testopia XML-RPC: list() with regexp

4 views
Skip to first unread message

desolat

unread,
Aug 6, 2009, 5:15:56 AM8/6/09
to
Hi, how far does the list() methods of the Testopia XML-RPC interface
support regular expressions?

I tried it with the TestCase interface, put the "summary_type=regexp"
option into the query but could not get e.g. a complete String match
with "^The summary$".

What am I doing wrong? Thx,
Chris

desolat

unread,
Aug 6, 2009, 6:22:38 AM8/6/09
to
On Aug 6, 11:15 am, desolat <christoph.jaehni...@gmail.com> wrote:
> Hi, how far does the list() methods of the Testopia XML-RPC interface
> support regular expressions?
>
> I tried it with the TestCase interface, put the "summary_type=regexp"
> option into the query but could not get e.g. a complete String match
> with "^The summary$".

Sorry, got it working that way. Just my fault.

Chris

desolat

unread,
Aug 20, 2009, 9:59:29 AM8/20/09
to
Another problem with the Testopia regular expressions support: It
seems that not the full perl regexp syntax is supported. For example
\Q and \E for string escaping are handled as normal literal sequences.

In general, what part of the regexp syntax is supported?

Thx
Chris

Gregary Hendricks

unread,
Aug 20, 2009, 12:24:26 PM8/20/09
to desolat, support-...@lists.mozilla.org
>>> On 8/20/2009 at 07:59 AM, in message
<467b4fa0-f26c-4db4...@p15g2000vbl.googlegroups.com>, desolat

I assume you are referring to regex in searches? Try escaping the \ (so \Q would be \\Q).
As Testopia is written in Perl, all Perl syntax for regex should apply. However, handling input as in the case of the regex searches, escaping is often necessary.

Greg

0 new messages