Issue 94916 - w_001a.inc: testcase tFileTemplatesAddressbookSource
Summary: w_001a.inc: testcase tFileTemplatesAddressbookSource
Status: CLOSED FIXED
Alias: None
Product: QA
Classification: Unclassified
Component: testscripts (show other issues)
Version: current
Hardware: All Solaris
: P2 Trivial
Target Milestone: ---
Assignee: fredrik.haegg
QA Contact: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 10:22 UTC by jogi
Modified: 2013-08-07 15:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description jogi 2008-10-13 10:22:15 UTC
You have a wrong if ... then ... else-loop which always let x86 (x86 Solaris)
and sol (SPARC Solaris) run into a warning.

Also "UseBindings" is deprecated and can be removed.

The fix - remove the wrong statement and the test case looks like this:

testcase tFileTemplatesAddressbookSource

    PrintLog " Open new document"
    Call hNewDocument

    PrintLog " File / Templates /Address Book Source..."
    FileTemplatesAddressbookSource
    WaitSlot(2000)
    PrintLog " In 'Address Book Assignement' dialog click pushbutton 'Administrate'"
    Kontext "AddressbookSource"
    if AddressbookSource.Exists then
        Call DialogTest (AddressbookSource)
        Administrate.Click
        Sleep 2
        PrintLog " Close 'Data Source Administration' with 'Cancel'"
        Kontext "DatabaseProperties"
        if Not DatabaseProperties.Exists then
            Kontext "AddressSourceAutopilot"
            if AddressSourceAutopilot.Exists then
                AddressSourceAutopilot.Cancel
            end if
                Kontext "AddressbookSource"
                AddressbookSource.Cancel
        else
            PrintLog " DatabaseProperties.SetPage TabConnection"
            Kontext "TabConnection"        
            Call DialogTest ( TabConnection )
            Kontext "DatabaseProperties"
            DatabaseProperties.Close
            Kontext "AddressbookSource"
            PrintLog " Close dialog"
            AddressbookSource.Cancel
        end if
    else
        Warnlog "Somethine wrong with Adress Source Autopilot - Check it."
        PrintLog " Close dialog"
        Kontext "AddressbookSource"
         AddressbookSource.Cancel
    end if
    printlog " Close active document"
    Call hCloseDocument
endcase
Comment 1 jogi 2008-10-13 10:23:24 UTC
cc'ing hde
Comment 2 fredrik.haegg 2008-10-15 16:52:08 UTC
Already seen, but thanks.
Comment 3 fredrik.haegg 2008-11-27 15:00:04 UTC
verified.