r1 - 15 Aug 2005 - 16:06:23 - AparnaKadakiaYou are here: OSAF >  Projects Web  >  QualityAssuranceTeam > ChandlerAutomatedTestSystem > CreateNote

import osaf.framework.scripting.QATestAppLib as !QATestAppLib
import os

filePath = os.path.expandvars('$QAPROFILEDIR')
if not os.path.exists(filePath):
    filePath = os.getcwd()

#initialization
fileName = "TestNewNote.log"
logger = !QATestAppLib.Logger(os.path.join(filePath, fileName),"Testcase name goes here")
note = !QATestAppLib.BaseByUI(
__view__
, "Note", logger) #action note.logger.Start("Setting the note attributes") #this method creates a new event and sets its attributes note.SetAttr(displayName="a Note", body="note body") note.logger.Stop() #verification note.Check_DetailView({"displayName":"a Note","body":"note body"}) note.logger.Report() #cleaning logger.Close()
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.