Moin Helge, :-)
Helge Delfs wrote:
> Hi Kuang Yong,
>
> kuangyong wrote:
>> -------------------------------------------------
>> Cursor before Table/Inside table Status: Standard
>> -------------------------------------------------
>> Line 11, the current selection contain several lines, and the characters
>> selected are either in the text or in the table , how can we check 'the
>> current selection' with
>> testtool?
>
> Simply copy the selected text and compare with the expected result:
>
> For example:
>
> EditCopy
> Call hNewDocument
> EditPaste
> Call wDokSchreiben ( "<Mod1 Home>" )
> Call wDokSchreiben ( "<Shift End>" )
> EditCopy
> If GetClipboardtest <> "aa" then Warnlog ......
> => This has to be done for each line
You can also test against the string <"aaa" & CHR(10) & "bbb" & CHR(10)
& "ccc"> for the full selection, instead of doing it for every line. A
bit worse is the verification for the testcase including the writer table:
aaa
--- ---
|bbb| |
--- ---
|ccc| |
--- ---
ddd
The test string for this is:
<"aaa" & CHR(10) & "bbb" & CHR(10) & CHR(10) & "ccc" & CHR(10) & CHR(10)
& "ddd">
This is the same result you would get for
aaa
bbb
ccc
ddd
So, I would recommend to also enter every single line and try to invoke
a dialog, that is only available when the cursor is inside a table cell.
The result would be:
FALSE for line: aaa
--- ---
TRUE for line: |bbb| |
--- ---
TRUE for line: |ccc| |
--- ---
FALSE for line: ddd
@Kuang Yong, Zhang Hong: This idea is new. I did *not* tell you about it
yet.
>
>
>> -------------------------------------------------------------------------
>> Multi-paste - Multi selection Status: Standard
>> -------------------------------------------------------------------------
>> Line 8, Paste, but in this case we din't copy before line8, is someting lost?
> You're right. This seems to be a detail missing in this testcase
> specification. And also the description how to mulitiselect 'text'
> described in line 7 is missing.
> I will contact the author of this tcs to fix it ! But you are free to
> insert an EditCopy line in your autotest to get this to work ;-)
+1
>
>> Additionally, this testcase is Valid for version: OpenOffice.org_2.3,
>> OpenOffice.org_2.3.1, OpenOffice.org_2.4, but I try it in
>> OpenOffice.org_2.3.1 and it seems 'Ctrl+Shift+F8' doesn't work.
> You have to install a developer snapshot that includes this feature for
> 2.4. Recently there was a discussion about it. Please ask Peter Junge
> where to find this install sets.
We already sorted this out.
>
>> I hope you can give us some advices, and we will try our best to achieve it.
>
> I'm sure you do :-) Hope my information helps ....
>
Thanks a lot from my side too.
Best regards
Peter
--
Peter Junge
Open Source Strategy Director
北京红旗中文贰仟软件技术有限公司
Beijing Redflag Chinese 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan South Street
Beijing Economic-Technological Development Area
Beijing - P.R.China
Tel:+86-10-51570010 ext.6183
http://www.redflag2000.cn
http://www.redflag2000.cn/english/index.htm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]