Issue 98741 - Usage Tracking: Need reliable way to switch tracking on/off for automation
Summary: Usage Tracking: Need reliable way to switch tracking on/off for automation
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC Windows, all
: P2 Trivial (vote)
Target Milestone: OOo 3.1
Assignee: joerg.skottke
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks: 90370
  Show dependency tree
 
Reported: 2009-02-02 14:10 UTC by joerg.skottke
Modified: 2009-03-19 09:13 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 joerg.skottke 2009-02-02 14:10:13 UTC
Currently we use a somewhat dirty approach to disable usage tracking during
initialization of automated tests.

As a consequence we cannot re-enable usage tracking, neither through the UI nor
through an API call.

The usage tracking feature has to integrate into the office somehow cleanly so
that QA automation cann access the featureset through both API and UI.

This is a p2, usage tracking feature remains untested until solved.
Comment 1 joerg.skottke 2009-02-02 14:10:40 UTC
Target
Comment 2 bjoern.michaelsen 2009-02-02 14:54:52 UTC
blocking 90370
Comment 3 bjoern.michaelsen 2009-02-13 17:29:10 UTC
fixed in cws oooimprovement3 r267735
Comment 4 bjoern.michaelsen 2009-02-13 17:30:50 UTC
@jsk: please verify
Comment 5 joerg.skottke 2009-02-16 13:26:55 UTC
Use

        gExtensionOOoImprovementIsInstalled = TRUE



	   
aPropertyValue(0).Value="/org.openoffice.Office.OOoImprovement.Settings/Participation"

	   
xViewRoot=oUnoConfigurationAccess.createInstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess",aPropertyValue())



	    xViewRoot.replaceByName( "ShowedInvitation", true )

	    xViewRoot.replaceByName( "InvitationAccepted", false )

	    xViewRoot.commitChanges()


	    xViewRoot.dispose()

to disable, set "InvitationAccepted" to TRUE to enable.
Comment 6 joerg.skottke 2009-03-19 09:13:03 UTC
Close