diff options
author | prashmohan <prashmohan> | 2006-06-19 16:48:59 +0000 |
---|---|---|
committer | prashmohan <prashmohan> | 2006-06-19 16:48:59 +0000 |
commit | e1def19b689538519d476ca0855974bc7e657723 (patch) | |
tree | 176c8be8297e1f662061a6141171ffcf6814c7f2 | |
parent | 3b4619c5d3ac5b6dd36dd65ee1e10032e6cd1b3b (diff) |
removed old gedit scripts
-rw-r--r-- | gedit/edit.py | 11 | ||||
-rw-r--r-- | gedit/gedit.map | 483 | ||||
-rw-r--r-- | gedit/gedit02.py | 70 | ||||
-rw-r--r-- | gedit/gedit03.py | 87 | ||||
-rw-r--r-- | gedit/gedit04.py | 50 | ||||
-rw-r--r-- | gedit/gedit05.py | 74 | ||||
-rw-r--r-- | gedit/gedit06.py | 106 | ||||
-rw-r--r-- | gedit/gedit07.py | 55 | ||||
-rw-r--r-- | gedit/gedit08.py | 72 | ||||
-rw-r--r-- | gedit/gedit09.py | 72 | ||||
-rw-r--r-- | gedit/gedit10.py | 57 | ||||
-rw-r--r-- | gedit/gedit11.py | 48 | ||||
-rw-r--r-- | gedit/gedit12.py | 15 | ||||
-rw-r--r-- | gedit/gedit13.py | 72 | ||||
-rw-r--r-- | gedit/gedit14.py | 13 | ||||
-rw-r--r-- | gedit/gedit15.py | 46 | ||||
-rw-r--r-- | gedit/gedit16.py | 37 | ||||
-rw-r--r-- | gedit/gedit17.py | 124 | ||||
-rw-r--r-- | gedit/gedit18.py | 125 | ||||
-rw-r--r-- | gedit/gedit19.py | 43 | ||||
-rw-r--r-- | gedit/gedit20.py | 11 | ||||
-rw-r--r-- | gedit/gedit21.py | 19 | ||||
-rw-r--r-- | gedit/launch.py | 54 | ||||
-rw-r--r-- | gedit/open-existingfile.py | 24 | ||||
-rw-r--r-- | gedit/open-newfile.py | 7 | ||||
-rw-r--r-- | gedit/pagesetup.py | 8 | ||||
-rw-r--r-- | gedit/readme | 18 | ||||
-rw-r--r-- | gedit/sa.py | 2 | ||||
-rw-r--r-- | gedit/sample.py | 5 |
29 files changed, 0 insertions, 1808 deletions
diff --git a/gedit/edit.py b/gedit/edit.py deleted file mode 100644 index 940a023..0000000 --- a/gedit/edit.py +++ /dev/null @@ -1,11 +0,0 @@ -#To perform edit operations -log ('Edit-File', 'teststart') -selectmenuitem ('gedit', 'mnuFile;mnuOpen') -selectrowindex ('dlgOpenFile', 'tblFiles' , 1) -click ('dlgOpenFile', 'btnOpen') -selectmenuitem ('gedit', 'mnuEdit;mnuSelectAll') -selectmenuitem ('gedit', 'mnuEdit;mnuCut') -selectmenuitem ('gedit', 'mnuEdit;mnuPaste') -selectmenuitem ('gedit', 'mnuFile;mnuSave') -log ('edit.py', 'pass') -log ('Edit-File', 'testend') diff --git a/gedit/gedit.map b/gedit/gedit.map deleted file mode 100644 index 29dd504..0000000 --- a/gedit/gedit.map +++ /dev/null @@ -1,483 +0,0 @@ -[gedit] -gedit={class=frame, app_name=gedit} -mnuFile={class=menu, label=File} -mnuNew={class=menu_item, label=New} -mnuOpen={class=menu_item, label=Open...} -mnuOpenLocation={class=menu_item, label=Open Location...} -mnuSave={class=menu_item, label=Save} -mnuSaveAs={class=menu_item, label=Save As...} -mnuSaveCopy={class=menu_item, label=Save Copy...} -mnuRevert={class=menu_item, label=Revert} -mnuPageSetup={class=menu_item, label=Page Setup} -mnuPrintPreview={class=menu_item, label=Print Preview...} -mnuPrint={class=menu_item, label=Print...} -mnu1={class=menu_item, label=1. firefox-accessibility.txt} -mnu2={class=menu_item, label=2. evolution-architecture-II.txt} -mnu3={class=menu_item, label=3. evolution-enhancement.txt} -mnu4={class=menu_item, label=4. evolution-architecture-I.txt} -mnu5={class=menu_item, label=5. evolution-competitor.txt} -mnuClose={class=menu_item, label=Close} -mnuQuit={class=menu_item, label=Quit} -mnuEdit={class=menu, label=Edit} -mnuUndo={class=menu_item, label=Undo} -mnuRedo={class=menu_item, label=Redo} -mnuCut={class=menu_item, label=Cut} -mnuCopy={class=menu_item, label=Copy} -mnuPaste={class=menu_item, label=Paste} -mnuDelete={class=menu_item, label=Delete} -mnuSelectAll={class=menu_item, label=Select All} -mnuInsertDateandTime={class=menu_item, label=Insert Date and Time...} -mnuPreferences={class=menu_item, label=Preferences} -mnuView={class=menu, label=View} -mnuToolbar={class=check_menu_item, label=Toolbar} -mnuStatusbar={class=check_menu_item, label=Statusbar} -mnuOutputWindow={class=check_menu_item, label=Output Window} -mnuCustomizeToolbar={class=menu, label=Customize Toolbar} -mnuDesktopDefault={class=radio_menu_item, label=Desktop Default} -mnuIconsOnly={class=radio_menu_item, label=Icons Only} -mnuTextforAllIcons={class=radio_menu_item, label=Text for All Icons} -mnuTextforImportantIcons={class=radio_menu_item, label=Text for Important Icons} -mnuHighlightMode={class=menu, label=Highlight Mode} -mnuNormal={class=radio_menu_item, label=Normal} -mnuSources={class=menu, label=Sources} -mnuVerilog={class=radio_menu_item, label=Verilog} -mnuFortran95={class=radio_menu_item, label=Fortran 95} -mnuNemerle={class=radio_menu_item, label=Nemerle} -mnuPHP={class=radio_menu_item, label=PHP} -mnuSQL={class=radio_menu_item, label=SQL} -mnuIDL={class=radio_menu_item, label=IDL} -mnuC={class=radio_menu_item, label=C} -mnuAda={class=radio_menu_item, label=Ada} -mnuVHDL={class=radio_menu_item, label=VHDL} -mnuC++={class=radio_menu_item, label=C++} -mnuPascal={class=radio_menu_item, label=Pascal} -mnuC#={class=radio_menu_item, label=C#} -mnuVB.NET={class=radio_menu_item, label=VB.NET} -mnuHaskell={class=radio_menu_item, label=Haskell} -mnuJava={class=radio_menu_item, label=Java} -mnuMarkup={class=menu, label=Markup} -mnuHTML={class=radio_menu_item, label=HTML} -mnuTexinfo={class=radio_menu_item, label=Texinfo} -mnuLaTeX={class=radio_menu_item, label=LaTeX} -mnuXML={class=radio_menu_item, label=XML} -mnuOthers={class=menu, label=Others} -mnuCSS={class=radio_menu_item, label=CSS} -mnuGtkRC={class=radio_menu_item, label=GtkRC} -mnuMSIL={class=radio_menu_item, label=MSIL} -mnu.ini={class=radio_menu_item, label=.ini} -mnugettexttranslation={class=radio_menu_item, label=gettext translation} -mnu.desktop={class=radio_menu_item, label=.desktop} -mnuDiff={class=radio_menu_item, label=Diff} -mnuScripts={class=menu, label=Scripts} -mnuJavaScript={class=radio_menu_item, label=JavaScript} -mnuR={class=radio_menu_item, label=R} -mnush={class=radio_menu_item, label=sh} -mnuPython={class=radio_menu_item, label=Python} -mnuPerl={class=radio_menu_item, label=Perl} -mnuLua={class=radio_menu_item, label=Lua} -mnuTcl={class=radio_menu_item, label=Tcl} -mnuRuby={class=radio_menu_item, label=Ruby} -mnuSearch={class=menu, label=Search} -mnuFind={class=menu_item, label=Find...} -mnuFindNext={class=menu_item, label=Find Next} -mnuFindPrevious={class=menu_item, label=Find Previous} -mnuReplace={class=menu_item, label=Replace...} -mnuGotoLine={class=menu_item, label=Go to Line...} -mnuTools={class=menu, label=Tools} -mnuDocumentStatistics={class=menu_item, label=Document Statistics} -mnuDocuments={class=menu, label=Documents} -mnuSaveAll={class=menu_item, label=Save All} -mnuCloseAll={class=menu_item, label=Close All} -mnuMovetoNewWindow={class=menu_item, label=Move to New Window} -mnuUnsavedDocument1={class=menu_item, label=Unsaved Document 1} -mnuHelp={class=menu, label=Help} -mnuContents={class=menu_item, label=Contents} -mnuAbout={class=menu_item, label=About} -btnNew={class=push_button, label=New} -btnOpen={class=push_button, label=Open} -btnSave={class=push_button, label=Save} -btnPrint={class=push_button, label=Print} -btnUndo={class=push_button, label=Undo} -btnRedo={class=push_button, label=Redo} -btnCut={class=push_button, label=Cut} -btnCopy={class=push_button, label=Copy} -btnPaste={class=push_button, label=Paste} -btnFind={class=push_button, label=Find} -btnReplace={class=push_button, label=Replace} -txtGedit1={class=text, label=Unsaved Document 1, relevant_index=0} -txtGedit={class=text, instance_index=0} - -[dlgAboutgedit] -dlgAboutgedit={class=dialog, label=About gedit, app_name=gedit} -btnhttp={class=push_button, label=http://www.gedit.org} -btnLicense={class=push_button, label=License} -btnCredits={class=push_button, label=Credits} -btnClose={class=push_button, label=Close} - -[dlgCredits] -dlgCredits={class=dialog, label=Credits, app_name=gedit} -ptlCredits={class=page_tab_list} -ptabWrittenby={class=page_tab, label=Written by} -ptabDocumentedby={class=page_tab, label=Documented by} -btnClose={class=push_button, label=Close} - -[dlgReplace] -dlgReplace={class=dialog, label=Replace, app_name=gedit} -chkMatchcase={class=check_box, label=Match case} -chkMatchentirewordonly={class=check_box, label=Match entire word only} -chkSearchbackwards={class=check_box, label=Search backwards} -chkWraparound={class=check_box, label=Wrap around} -btnFind={class=push_button, label=Find} -btnReplace={class=push_button, label=Replace} -btnReplaceAll={class=push_button, label=Replace All} -btnClose={class=push_button, label=Close} - -[dlgFind] -dlgFind={class=dialog, label=Find, app_name=gedit} -chkMatchcase={class=check_box, label=Match case} -chkMatchentirewordonly={class=check_box, label=Match entire word only} -chkSearchbackwards={class=check_box, label=Search backwards} -chkWraparound={class=check_box, label=Wrap around} -btnFind={class=push_button, label=Find} -btnClose={class=push_button, label=Close} - -[dlgDocumentStatistics] -dlgDocumentStatistics={class=dialog, label=Document Statistics, app_name=gedit} -btnUpdate={class=push_button, label=Update} -btnClose={class=push_button, label=Close} - -[dlgGotoLine] -dlgGotoLine={class=dialog, label=Go to Line, app_name=gedit} -txtLinenumber={class=text, label_by=Line number:} -btnGotoLine={class=push_button, label=Go to Line} -btnClose={class=push_button, label=Close} - -[dlgPreferences] -dlgPreferences={class=dialog, label=Preferences, app_name=gedit} -ptlPreferences={class=page_tab_list} -ptabEditor={class=page_tab, label=Editor} -sbtnTabwidth={class=spin_button, label_by=Tab width:} -chkInsertspacesinsteadoftabs={class=check_box, label=Insert spaces instead of tabs} -chkEnableautomaticindentation={class=check_box, label=Enable automatic indentation} -chkCreateabackupcopyoffilesbeforesaving={class=check_box, label=Create a backup copy of files before saving} -chkAutosavefilesevery={class=check_box, label=Autosave files every} -sbtnminutes={class=spin_button, label_by=minutes} -rdoLimitto={class=radio_button, label=Limit to} -sbtnactions={class=spin_button, label_by=actions} -rdoUnlimitedundo={class=radio_button, label=Unlimited undo} -ptabView={class=page_tab, label=View} -chkEnabletextwrapping={class=check_box, label=Enable text wrapping} -chkDonotsplitwordsovertwolines={class=check_box, label=Do not split words over two lines} -chkDisplaylinenumbers={class=check_box, label=Display line numbers} -chkHighlightcurrentline={class=check_box, label=Highlight current line} -chkDisplayrightmargin={class=check_box, label=Display right margin} -sbtnRightmarginatcolumn={class=spin_button, label_by=Right margin at column:} -chkHighlightmatchingbracket={class=check_box, label=Highlight matching bracket} -ptabFont&Colors={class=page_tab, label=Font & Colors} -chkUsedefaultthemefont={class=check_box, label=Use default theme font} -btnEditorfont={class=push_button, label_by=Editor font: } -chkUsedefaultthemecolors={class=check_box, label=Use default theme colors} -btnSelectioncolor={class=push_button, label_by=Selection color:} -btnSelectedtextcolor={class=push_button, label_by=Selected text color:} -btnBackgroundcolor={class=push_button, label_by=Background color:} -btnNormaltextcolor={class=push_button, label_by=Normal text color:} -ptabSyntaxHighlighting={class=page_tab, label=Syntax Highlighting} -chkEnablesyntaxhighlighting={class=check_box, label=Enable syntax highlighting} -mnuVerilog={class=menu_item, label=Verilog} -mnuHTML={class=menu_item, label=HTML} -mnuCSS={class=menu_item, label=CSS} -mnuJavaScript={class=menu_item, label=JavaScript} -mnuR={class=menu_item, label=R} -mnuGtkRC={class=menu_item, label=GtkRC} -mnush={class=menu_item, label=sh} -mnuFortran95={class=menu_item, label=Fortran 95} -mnuPython={class=menu_item, label=Python} -mnuTexinfo={class=menu_item, label=Texinfo} -mnuNemerle={class=menu_item, label=Nemerle} -mnuPHP={class=menu_item, label=PHP} -mnuPerl={class=menu_item, label=Perl} -mnuSQL={class=menu_item, label=SQL} -mnuIDL={class=menu_item, label=IDL} -mnuLaTeX={class=menu_item, label=LaTeX} -mnuC={class=menu_item, label=C} -mnuAda={class=menu_item, label=Ada} -mnuVHDL={class=menu_item, label=VHDL} -mnuLua={class=menu_item, label=Lua} -mnuC++={class=menu_item, label=C++} -mnuPascal={class=menu_item, label=Pascal} -mnuMSIL={class=menu_item, label=MSIL} -mnuC#={class=menu_item, label=C#} -mnuXML={class=menu_item, label=XML} -mnuVB={class=menu_item, label=VB.NET} -mnuIni={class=menu_item, label=.ini} -mnuHaskell={class=menu_item, label=Haskell} -mnugettexttranslation={class=menu_item, label=gettext translation} -mnuJava={class=menu_item, label=Java} -mnuTcl={class=menu_item, label=Tcl} -mnuDesktop={class=menu_item, label=.desktop} -mnuRuby={class=menu_item, label=Ruby} -mnuDiff={class=menu_item, label=Diff} -tbtnbold={class=toggle_button, label=bold} -tbtnitalic={class=toggle_button, label=italic} -tbtnunderline={class=toggle_button, label=underline} -tbtnstrikethrough={class=toggle_button, label=strikethrough} -chkBackground={class=check_box, label=Background:} -chkForeground={class=check_box, label=Foreground:} -btnResettoDefault={class=push_button, label=Reset to Default } -ptabPlugins={class=page_tab, label=Plugins} -btnAboutPlugin={class=push_button, label=About Plugin} -btnConfigurePlugin={class=push_button, label=Configure Plugin} -btnClose={class=push_button, label=Close} -btnHelp={class=push_button, label=Help} - -[dlgPicktheeditorfont] -dlgPicktheeditorfont={class=fontchooser, label=Pick the editor font, app_name=gedit} -tblSize={class=table, label_by=Size:} -tblStyle={class=table, label_by=Style:} -tblFamily={class=table, label_by=Family:} -txtSize={class=text, label_by=Size:} -txtPreview={class=text, label_by=Preview:} -btnOK={class=push_button, label=OK} -btnApply={class=push_button, label=Apply} -btnCancel={class=push_button, label=Cancel} - -[dlgInsertDateandTime] -dlgInsertDateandTime={class=dialog, label=Insert Date and Time, app_name=gedit} -rdoUsetheselectedformat={class=radio_button, label=Use the selected format} -rdoUsecustomformat={class=radio_button, label=Use custom format} -btnInsert={class=push_button, label=Insert} -btnCancel={class=push_button, label=Cancel} -btnHelp={class=push_button, label=Help} - -[dlgSaveas] -dlgSaveas={class=dialog, label=Save as..., app_name=gedit} -mnuHome={class=menu_item, label=Home} -mnuDesktop={class=menu_item, label=Desktop} -mnuFilesystem={class=menu_item, label=Filesystem} -mnu10GMedia={class=menu_item, label=10G Media} -mnuDVD={class=menu_item, label=DVD} -txtName={class=text, label_by=Name:} -tbtnBrowseforotherfolders={class=toggle_button, label=Browse for other folders} -tblShortcuts={class=table, label=Shortcuts} -btnAdd={class=push_button, label=Add} -btnRemove={class=push_button, label=Remove} -tbtnHome={class=toggle_button, label=Home} -btnCreateFolder={class=push_button, label=Create Folder} -tblFiles={class=table, label=Files} -mnuAllFiles={class=menu_item, label=All Files} -mnuAllTextFiles={class=menu_item, label=All Text Files} -mnuCurrentLocale={class=radio_menu_item, label=Current Locale (UTF-8)} -mnuWestern={class=radio_menu_item, label=Western (ISO-8859-15)} -mnuAddorRemove={class=menu_item, label=Add or Remove...} -btnSave={class=push_button, label=Save} -btnCancel={class=push_button, label=Cancel} - -[dlgOpenFile] -dlgOpenFile={class=dialog, label=Open File..., app_name=gedit} -txtName={class=text, label_by=Name:} -tbtnBrowseforotherfolders={class=toggle_button, label=Browse for other folders} -tblShortcuts={class=table, label=Shortcuts} -btnAdd={class=push_button, label=Add} -btnRemove={class=push_button, label=Remove} -tbtnHome={class=toggle_button, label=Home} -btnCreateFolder={class=push_button, label=Create Folder} -tblFiles={class=table, label=Files} -mnuAllFiles={class=menu_item, label=All Files} -mnuAllTextFiles={class=menu_item, label=All Text Files} -mnuAutoDetected={class=radio_menu_item, label=Auto Detected} -mnuCurrentLocale={class=radio_menu_item, label=Current Locale (UTF-8)} -mnuWestern={class=radio_menu_item, label=Western (ISO-8859-15)} -mnuAddorRemove={class=menu_item, label=Add or Remove...} -btnOpen={class=push_button, label=Open} -btnCancel={class=push_button, label=Cancel} - -[dlgPrint] -dlgPrint={class=dialog, label=Print, app_name=gedit} -ptlPrint={class=page_tab_list} -ptabPrinter={class=page_tab, label=Printer} -tblPrinter={class=table, instance_index=0} -mnuLocation={class=menu} -mnuFile={class=menu_item, label=File} -mnulpr={class=menu_item, label=lpr} -mnuOldCustom={class=menu_item, label=Custom} -btnSaveAs={class=push_button, label=Save As} -mnuOldDefault={class=menu_item, label=Default} -mnuDefault={class=menu_item, label=Default} -mnuAddnewsettings={class=menu_item, label=Add new settings} -btnAdd={class=push_button, label=Add} -btnConfigure={class=push_button, label=Configure} -ptabJob={class=page_tab, label=Job} -rdoSelection={class=radio_button, label=Selection} -sbtnFrom={class=spin_button, label_by=From:} -sbtnTo={class=spin_button, label_by=To:} -rdoLines={class=radio_button, label=Lines} -rdoAll={class=radio_button, label=All} -chkCollate={class=check_box, label=Collate} -sbtnNumberofcopies={class=spin_button, label_by=Number of copies:} -ptabPaper={class=page_tab, label=Paper} -mnuNooptionsaredefined={class=menu_item, label=No options are defined} -mnuPlain={class=menu_item, label=Plain} -mnu2pagesto1={class=menu_item, label=2 pages to 1} -mnu4pagesto1={class=menu_item, label=4 pages to 1} -mnuDivided={class=menu_item, label=Divided} -mnuFolded={class=menu_item, label=Folded} -mnuPortrait={class=menu_item, label=Portrait} -mnuLandscape={class=menu_item, label=Landscape} -mnuUpsidedownportrait={class=menu_item, label=Upside down portrait} -mnuUpsidedownlandscape={class=menu_item, label=Upside down landscape} -mnuStraight={class=menu_item, label=Straight} -mnuRotated90degrees={class=menu_item, label=Rotated 90 degrees} -mnuRotated180degrees={class=menu_item, label=Rotated 180 degrees} -mnuRotated270degrees={class=menu_item, label=Rotated 270 degrees} -mnuPoints={class=menu_item, label=Points} -mnuMillimeters={class=menu_item, label=Millimeters} -mnuCentimeters={class=menu_item, label=Centimeters} -mnuInches={class=menu_item, label=Inches} -sbtnHeight={class=spin_button, label_by=Height:} -sbtnWidth={class=spin_button, label_by=Width:} -mnuA4={class=menu_item, label=A4} -mnuUSLetter={class=menu_item, label=US Letter} -mnuUSLegal={class=menu_item, label=US Legal} -mnuUSExecutive={class=menu_item, label=US Executive} -mnuCustom={class=menu_item, label=Custom} -mnuA0={class=menu_item, label=A0} -mnuA1={class=menu_item, label=A1} -mnuA2={class=menu_item, label=A2} -mnuA3={class=menu_item, label=A3} -mnuA5={class=menu_item, label=A5} -mnuA6={class=menu_item, label=A6} -mnuA7={class=menu_item, label=A7} -mnuA8={class=menu_item, label=A8} -mnuA9={class=menu_item, label=A9} -mnuA10={class=menu_item, label=A10} -mnuB0={class=menu_item, label=B0} -mnuB1={class=menu_item, label=B1} -mnuB2={class=menu_item, label=B2} -mnuB3={class=menu_item, label=B3} -mnuB4={class=menu_item, label=B4} -mnuB5={class=menu_item, label=B5} -mnuB6={class=menu_item, label=B6} -mnuB7={class=menu_item, label=B7} -mnuB8={class=menu_item, label=B8} -mnuB9={class=menu_item, label=B9} -mnuB10={class=menu_item, label=B10} -mnuC0={class=menu_item, label=C0} -mnuC1={class=menu_item, label=C1} -mnuC2={class=menu_item, label=C2} -mnuC3={class=menu_item, label=C3} -mnuC4={class=menu_item, label=C4} -mnuC5={class=menu_item, label=C5} -mnuC6={class=menu_item, label=C6} -mnuC7={class=menu_item, label=C7} -mnuC8={class=menu_item, label=C8} -mnuC9={class=menu_item, label=C9} -mnuC10={class=menu_item, label=C10} -mnu1/3A4={class=menu_item, label=1/3 A4} -mnu1/4A4={class=menu_item, label=1/4 A4} -mnu1/8A4={class=menu_item, label=1/8 A4} -mnu1/4A3={class=menu_item, label=1/4 A3} -mnu1/3A5={class=menu_item, label=1/3 A5} -mnuDLEnvelope={class=menu_item, label=DL Envelope} -mnuC6/C5Envelope={class=menu_item, label=C6/C5 Envelope} -mnuEnvelopeNo10={class=menu_item, label=Envelope No10} -mnuEnvelope6x9={class=menu_item, label=Envelope 6x9} -btnPrintPreview={class=push_button, label=Print Preview} -btnPrint={class=push_button, label=Print} -btnCancel={class=push_button, label=Cancel} - -[dlgGENERIC] -dlgGENERIC={class=dialog, label=GENERIC, app_name=gedit} -mnuNooptionsaredefined={class=menu_item, label=No options are defined} -chkTumble={class=check_box, label=Tumble} -chkDuplex={class=check_box, label=Duplex} -btnClose={class=push_button, label=Close} - -[Printpreview] -Printpreview={class=frame, app_name=gedit, label=Print preview} -btnclose={class=push_button, label=close} -btnprint={class=push_button, label=print} -btncut={class=push_button, label=cut} -btncopy={class=push_button, label=copy} -btnpaste={class=push_button, label=paste} -btngtk-undo={class=push_button, label=gtk-undo} -btnredo={class=push_button, label=redo} -btngotofirst={class=push_button, label=go to first} -btngoback={class=push_button, label=go back} -btngoforward={class=push_button, label=go forward} -btngotolast={class=push_button, label=go to last} -btnzoom100percent={class=push_button, label=zoom 100 percent} -btnzoomfit={class=push_button, label=zoom fit} -btnzoomin={class=push_button, label=zoom in} -btnzoomout={class=push_button, label=zoom out} -btnmultipledraganddrop={class=push_button, label=multiple drag and drop} -tbtngtk-edit={class=toggle_button, label=gtk-edit} -tbtncolorpicker={class=toggle_button, label=color picker} -txtPage={class=text, label_by=Page: } -panePagePreview={class=layered_pane, label=Page Preview} - -[dlgPageSetup] -dlgPageSetup={class=dialog, label=Page Setup, app_name=gedit} -ptlPage Setup={class=page_tab_list} -ptabGeneral={class=page_tab, label=General} -chkPrintsyntaxhighlighting={class=check_box, label=Print syntax highlighting} -chkPrintpageheaders={class=check_box, label=Print page headers} -chkPrintlinenumbers={class=check_box, label=Print line numbers} -sbtnNumberevery={class=spin_button, label_by=Number every} -chkEnabletextwrapping={class=check_box, label=Enable text wrapping} -chkDonotsplitwordsovertwolines={class=check_box, label=Do not split words over two lines} -ptabFonts={class=page_tab, label=Fonts} -btnLinenumbers={class=push_button, label_by=Line numbers:} -btnHeadersandfooters={class=push_button, label_by=Headers and footers:} -btnBody={class=push_button, label_by=Body:} -btnRestoreDefaultFonts={class=push_button, label=Restore Default Fonts} -btnClose={class=push_button, label=Close} -btnHelp={class=push_button, label=Help} - -[dlgOpenLocation] -dlgOpenLocation={class=dialog, label=Open Location, app_name=gedit} -mnuAutoDetected={class=radio_menu_item, label=Auto Detected} -mnuCurrentLocale={class=radio_menu_item, label=Current Locale (UTF-8)} -mnuWestern={class=radio_menu_item, label=Western (ISO-8859-15)} -mnuAddorRemove={class=menu_item, label=Add or Remove...} -btnHelp={class=push_button, label=Help} -btnOpen={class=push_button, label=Open} -btnCancel={class=push_button, label=Cancel} -txtEnterLocation={class=text, instance_index=0} - -[alrtSaveWindow] -alrtSaveWindow={class=alert, label=Question, app_name=gedit} -btnSave={class=push_button, label=Save} -btnCancel={class=push_button, label=Cancel} -btnClosewithoutSaving={class=push_button, label=Close without Saving} - -[alrtOverWrite] -alrtOverWrite={class=alert, label=Question, app_name=gedit} -btnReplace={class=push_button, label=Replace} -btnCancel={class=push_button, label=Cancel} -btnYes={class=push_button, label=Yes} -btnNo={class=push_button, label=No} - -[alrtErrorOpenFile] -alrtErrorOpenFile={class=alert, label=Error, app_name=gedit} -btnOK={class=push_button, label=OK} - -[dlgPrintToFile] -dlgPrintToFile={class=dialog, label=Please specify the location and filename of the output file:, app_name=gedit} -mnuHome={class=menu_item, label=Home} -mnuDesktop={class=menu_item, label=Desktop} -mnuFilesystem={class=menu_item, label=Filesystem} -mnu10GMedia={class=menu_item, label=10G Media} -mnuDVD={class=menu_item, label=DVD} -txtName={class=text, label_by=Name:} -tbtnBrowseforotherfolders={class=toggle_button, label=Browse for other folders} -tblShortcuts={class=table, label=Shortcuts} -btnAdd={class=push_button, label=Add} -btnRemove={class=push_button, label=Remove} -tbtnHome={class=toggle_button, label=Home} -btnCreateFolder={class=push_button, label=Create Folder} -tblFiles={class=table, label=Files} -mnuPDFFiles={class=menu_item, label=PDF Files} -mnuPostscriptFiles={class=menu_item, label=Postscript Files} -mnuAllFiles={class=menu_item, label=All Files} -btnSave={class=push_button, label=Save} -btnCancel={class=push_button, label=Cancel} diff --git a/gedit/gedit02.py b/gedit/gedit02.py deleted file mode 100644 index a142495..0000000 --- a/gedit/gedit02.py +++ /dev/null @@ -1,70 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Create a new document and save it -log ('Create New Document', 'teststart') - -try: - try: - # Close all opened tab - selectmenuitem ('gedit', 'mnuDocuments;mnuCloseAll') - except error: - log ('There maybe no documents opened', 'info') - selectmenuitem ('gedit', 'mnuFile;mnuNew') - - # TODO - # - Verify new document window is opened - # - Get text from pre-defined file maybe from default_doc_dir and use it in settextvalue function - settextvalue ('gedit', 'txtGedit', 'Testing gedit using GNU/Linux Desktop Testing Project') - - # TODO - # - Verify text content placed properly - selectmenuitem ('gedit', 'mnuFile;mnuSaveAs') - - # Wait for 3 seconds, so that save as dialog window will appear - time.sleep (3) - - # Check for dialog window - if guiexist ('dlgSaveas') == 1: - settextvalue ('dlgSaveas', 'txtName', default_tmp_dir + '/sample.txt') - click ('dlgSaveas', 'tbtnBrowseforotherfolders') - selectrowindex ('dlgSaveas', 'tblShortcuts', 0) - click ('dlgSaveas', 'btnSave') - - time.sleep (2) - if guiexist ('alrtOverWrite') == 1: - click ('alrtOverWrite', 'btnReplace') - selectmenuitem ('gedit', 'mnuDocuments;mnuCloseAll') - # TODO - # - Verify saved text file content using compare function - log ('Create New Document', 'pass') - else: - log ('Save dialog does not appear', 'error') - log ('Create New Document', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Create New Document', 'fail') - -log ('Create New Document', 'testend') diff --git a/gedit/gedit03.py b/gedit/gedit03.py deleted file mode 100644 index c1123b5..0000000 --- a/gedit/gedit03.py +++ /dev/null @@ -1,87 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Open existing document, edit it and save it to a new document -log ('Edit Existing Document', 'teststart') - -try: - try: - # Close all opened tab - #selectmenuitem ('gedit', 'mnuDocuments;mnuCloseAll') - print 'Test' - except error: - log ('There maybe no documents opened', 'info') - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - # Wait for 3 seconds, let the open dialog window appear - time.sleep (3) - # Verify open dialog appears or not - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Select file from default_doc_dir - selectrowindex ('dlgOpenFile', 'tblShortcuts', 0) - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - #selectrow ('dlgOpenFile', 'tblFiles', default_doc_dir + '/sample.txt') - selectrow ('dlgOpenFile', 'tblFiles', 'sample.txt') - # TODO - # - Handle if, file not found - click ('dlgOpenFile', 'btnOpen') - # TODO - # - Verify file is opened or not - # - Get text from file and use it to set new text value - print "flag" - # Set new text - settextvalue ('gedit', 'txtGedit', 'Edit existing document and test it using GNU/Linux Desktop Testing Project') - # TODO - # - Verify new text is set or not - # Invoke save as dialog - selectmenuitem ('gedit', 'mnuFile;mnuSaveAs') - # Wait for 3 seconds, let the save dialog window appear - time.sleep (3) - # Verify save as dialog appears or not - if guiexist ('dlgSaveas') == 1: - settextvalue ('dlgSaveas', 'txtName', default_tmp_dir + '/edit.txt') - click ('dlgSaveas', 'btnSave') - - time.sleep (2) - # If file already exist, then replace it with this new content - if guiexist ('alrtOverWrite') == 1: - click ('alrtOverWrite', 'btnReplace') - # TODO - # - Verify file contents properly saved or not after editing - - # Close current file - #selectmenuitem ('gedit', 'mnuFile;mnuClose') - log ('Edit Existing Document', 'pass') - else: - log ('Save as dialog box does not appear', 'error') - log ('Edit Existing Document', 'fail') - else: - log ('Open dialog box does not appear', 'error') - log ('Edit Existing Document', 'fail') -except error, msg: - log (str(msg), 'error') - log ('Edit Existing Document', 'fail') -log ('Edit Existing Document', 'testend') diff --git a/gedit/gedit04.py b/gedit/gedit04.py deleted file mode 100644 index b1f831a..0000000 --- a/gedit/gedit04.py +++ /dev/null @@ -1,50 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Click cancel in open dialog box, after selecting a file -log ('Click Cancel In Open Dialog Box', 'teststart') -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - - # Wait for 3 seconds, let the open dialog box window appear - time.sleep (3) - - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - click ('dlgOpenFile', 'btnCancel') - time.sleep (2) - if guiexist ('dlgOpenFile') == 0: - log ('Click Cancel In Open Dialog Box', 'pass') - else: - log ('Open dialog box still appears', 'error') - log ('Click Cancel In Open Dialog Box', 'fail') - else: - log ('Open dialog box does not appear', 'error') - log ('Click Cancel In Open Dialog Box', 'fail') -except error, msg: - log (str(msg), 'error') - log ('Click Cancel In Open Dialog Box', 'fail') -log ('Click Cancel In Open Dialog Box', 'testend') diff --git a/gedit/gedit05.py b/gedit/gedit05.py deleted file mode 100644 index 9b405a7..0000000 --- a/gedit/gedit05.py +++ /dev/null @@ -1,74 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Click cancel in save as dialog box, after selecting a file -log ('Click Cancel In Save As Dialog Box', 'teststart') -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - - # Wait for 3 seconds, let the open dialog box window appear - time.sleep (3) - - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - selectrow ('dlgOpenFile', 'tblFiles', 'sample.txt') - # TODO - # - Check if file does not exist - click ('dlgOpenFile', 'btnOpen') - - # Wait for 3 seconds, let the open dialog box window appear - time.sleep (3) - if guiexist ('dlgOpenFile') == 1: - log ('Open dialog box appears after opening file', 'error') - log ('Click Cancel In Save As Dialog Box', 'fail') - else: - # TODO - # Check if file opened successfully - # Wait for 2 seconds, Let the file be loaded - time.sleep (2) - selectmenuitem ('gedit', 'mnuFile;mnuSaveAs') - # Wait for 2 seconds, Let the file be loaded - time.sleep (2) - if guiexist ('dlgSaveas') == 1: - # btncancel is not working (hanged) - comment by fasila - click ('dlgSaveas', 'btnCancel') - # Wait for 2 seconds, Let the file be loaded - time.sleep (2) - if guiexist ('dlgSaveas') == 0: - log ('Click Cancel In Save As Dialog Box', 'pass') - else: - log ('Save As dialog box still appears', 'error') - log ('Click Cancel In Open Dialog Box', 'fail') - else: - log ('Save As dialog box does not appear', 'error') - log ('Click Cancel In Save As Dialog Box', 'fail') - else: - log ('Open dialog box does not appear', 'error') - log ('Click Cancel In Save As Dialog Box', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Click Cancel In Save As Dialog Box', 'fail') -log ('Click Cancel In Save As Dialog Box', 'testend') diff --git a/gedit/gedit06.py b/gedit/gedit06.py deleted file mode 100644 index a925693..0000000 --- a/gedit/gedit06.py +++ /dev/null @@ -1,106 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Print preview and print a document -log ('Print Preview And Print Document', 'teststart') -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - # Wait 3 seconds, let the Open Dialog appear - time.sleep (3) - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - selectrow ('dlgOpenFile', 'tblFiles', 'sample.txt') - click ('dlgOpenFile', 'btnOpen') - time.sleep (2) - # TODO - # - Check file opened or not - if guiexist ('dlgOpenFile') == 0: - log ('Print Preview', 'teststart') - selectmenuitem ('gedit', 'mnuFile;mnuPrintPreview') - # Wait for 3 seconds, let the print preview window appear - time.sleep (3) - if guiexist ('Printpreview') == 1: - # TODO - # - Verify contents dispalyed in print preview frame - log ('Print Preview window appeared', 'info') - click ('Printpreview', 'btnclose') - # Wait for 2 seconds, let the print preview window disappear - time.sleep (2) - if guiexist ('Printpreview') == 0: - log ('Print Preview', 'pass') - else: - log ('Print preview dialog still appears', 'error') - log ('Print Preview', 'fail') - else: - log ('Print preview dialog does not appear', 'error') - log ('Print Preview', 'fail') - log ('Print Preview', 'testend') - - log ('Print Document', 'teststart') - selectmenuitem ('gedit', 'mnuFile;mnuPrint') - # Wait for 3 seconds, let the print dialog appear - time.sleep (3) - # Select generic postscript printer, so that we can print the document to local file - # and later we can compare the output - selectrow ('dlgPrint', 'tblPrinter', 'Generic Postscript') - selectmenuitem ('dlgPrint', 'mnuLocation;mnuFile') - click ('dlgPrint', 'btnSaveAs') - - # Wait for 3 seconds, let the print to file dialog box appear - time.sleep (3) - if guiexist ('dlgPrintToFile') == 1: - settextvalue ('dlgPrintToFile', 'txtName', default_tmp_dir + '/output.ps') - # TODO - # - Check output is available in default_tmp_dir - # - File comparison - # Let the document get printed to output file and print to file dialog box disappear - time.sleep (5) - if guiexist ('dlgPrintToFile') == 1: - click ('dlgPrintToFile', 'btnSave') - time.sleep (2) - if guiexist ('alrtOverWrite') == 1: - click ('alrtOverWrite', 'btnYes') - click ('dlgPrint', 'btnPrint') - # Let the document be printed - time.sleep (3) - log ('Print Document', 'pass') - else: - click ('dlgPrintToFile', 'btnCancel') - log ('Print to file dialog still appears after saving output to file', 'error') - log ('Print Document', 'fail') - else: - click ('dlgPrint', 'btnCancel') - log ('Print to file dialog does not appear', 'error') - log ('Print Document', 'fail') - log ('Print Document', 'testend') - log ('Print Preview And Print Document', 'pass') - else: - log ('Still open dialog window appears', 'error') - log ('Print Preview And Print Document', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Print Preview And Print Document', 'fail') -log ('Print Preview And Print Document', 'testend') diff --git a/gedit/gedit07.py b/gedit/gedit07.py deleted file mode 100644 index f14b0c2..0000000 --- a/gedit/gedit07.py +++ /dev/null @@ -1,55 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Close currently opened document in gedit -log ('Close Currently Opened Document', 'teststart') - -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - # Wait 3 seconds, let the Open Dialog appear - time.sleep (3) - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - selectrow ('dlgOpenFile', 'tblFiles','sample.txt') - click ('dlgOpenFile', 'btnOpen') - time.sleep (2) - # TODO - # - Check file opened or not - if guiexist ('dlgOpenFile') == 0: - selectmenuitem ('gedit', 'mnuFile;mnuClose') - # TODO - # - Verify document closed successfully - log ('Close Currently Opened Document', 'pass') - else: - log ('Open dialog window still appears', 'error') - log ('Close Currently Opened Document', 'fail') - else: - log ('Open dialog window does not appear', 'error') - log ('Close Currently Opened Document', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Close Currently Opened Document', 'fail') -log ('Close Currently Opened Document', 'testend') diff --git a/gedit/gedit08.py b/gedit/gedit08.py deleted file mode 100644 index 244236e..0000000 --- a/gedit/gedit08.py +++ /dev/null @@ -1,72 +0,0 @@ -# to save all the currently open and modified documents in gedit even if one of those documents is a new document (i.e. gedit will prompt the user for a file name for all the newly created documents that have been modified). -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - #click('dlgOpenFile','btnOpen') - #selectrowindex('dlgOpenFile', 'tblFiles',8) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - settextvalue('gedit','txtgedit','how are u') -#opening 2nd existing file - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - #click('dlgOpenFile','btnOpen') - selectrow('dlgOpenFile', 'tblFiles','sa.py') - click('dlgOpenFile','btnOpen') - - settextvalue('gedit','txtgedit','how do u do')#text values are always stored in existing files no cursor positioning function -#opening new 2 files and modifying it - selectmenuitem('gedit', 'mnuFile;mnuNew') - settextvalue('gedit','txtgedit','I am fine') - selectmenuitem('gedit','mnuFile;mnuNew') - settextvalue('gedit','txtgedit','thank u') -#opening 2 new files - selectmenuitem('gedit','mnuFile;mnuNew') - selectmenuitem('gedit','mnuFile;mnuNew') -#saving all documents and closing it - selectmenuitem('gedit','mnuDocuments;mnuSaveAll') - click('dlgSaveas','tbtnBrowseforotherfolders') - settextvalue('dlgSaveas','txtName','f1') - click('dlgSaveas', 'btnSave') - settextvalue('dlgSaveas','txtName','f2') - click('dlgSaveas','tbtnBrowseforotherfolders') - click('dlgSaveas','btnSave') - - settextvalue('dlgSaveas','txtName','f3') - click('dlgSaveas','tbtnBrowseforotherfolders') - click('dlgSaveas','btnSave') - - settextvalue('dlgSaveas','txtName','f4') - click('dlgSaveas','tbtnBrowseforotherfolders') - click('dlgSaveas','btnSave') - selectmenuitem('gedit','mnuDocuments;mnuCloseAll') -#reopening all files - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrow('dlgOpenFile', 'tblFiles','sa.py') - click('dlgOpenFile','btnOpen') - - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrow('dlgOpenFile', 'tblFiles','f1') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrow('dlgOpenFile', 'tblFiles','f2') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrow('dlgOpenFile', 'tblFiles','f3') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrow('dlgOpenFile', 'tblFiles','f4') - click('dlgOpenFile','btnOpen') -#quitting - selectmenuitem ('gedit','mnuFile;mnuQuit') -except: - print "08 error occured is:", sys.exc_info()[0] - - - diff --git a/gedit/gedit09.py b/gedit/gedit09.py deleted file mode 100644 index acc9d61..0000000 --- a/gedit/gedit09.py +++ /dev/null @@ -1,72 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Close all the documents that are opened currently in gedit -log ('Close All Opened Documents', 'teststart') -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - # Wait 3 seconds, let the Open Dialog appear - time.sleep (3) - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - selectrow ('dlgOpenFile', 'tblFiles', 'sample.txt') - click ('dlgOpenFile', 'btnOpen') - time.sleep (2) - # TODO - # - Check file opened or not - if guiexist ('dlgOpenFile') == 0: - log ('Still dialog window appears', 'error') - # Open 2nd file - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - # Wait 3 seconds, let the Open Dialog appear - time.sleep (3) - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - selectrow ('dlgOpenFile', 'tblFiles', 'edit.txt') - click ('dlgOpenFile', 'btnOpen') - time.sleep (2) - # TODO - # - Check file opened or not - if guiexist ('dlgOpenFile') == 0: - selectmenuitem ('gedit', 'mnuDocuments;mnuCloseAll') - log ('Close All Opened Documents', 'pass') - else: - log ('Open dialog window still appears', 'error') - log ('Close All Opened Documents', 'fail') - else: - log ('Open dialog window does not appear', 'error') - log ('Close All Opened Documents', 'fail') - else: - log ('Open dialog window still appears', 'error') - log ('Close All Opened Documents', 'fail') - else: - log ('Open dialog window does not appear', 'error') - log ('Close All Opened Documents', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Close All Opened Documents', 'fail') -log ('Close All Opened Documents', 'testend') diff --git a/gedit/gedit10.py b/gedit/gedit10.py deleted file mode 100644 index 59ae071..0000000 --- a/gedit/gedit10.py +++ /dev/null @@ -1,57 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Open a document from URL -log ('Open Document From URL', 'teststart') - -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpenLocation') - # Wait for 2 seconds, let the Open Location dialog window appear - time.sleep (2) - if guiexist ('dlgOpenLocation') == 1: - settextvalue ('dlgOpenLocation', 'txtEnterLocation', 'http://gnomebangalore.org/ldtp') - click ('dlgOpenLocation', 'btnOpen') - time.sleep (2) - # Check if Alert message poped up - if guiexist ('alrtErrorOpenFile') == 1: - click ('alrtErrorOpenFile', 'btnOK') - time.sleep (2) - if guiexist ('dlgOpenLocation') == 0: - # TODO - # - Verify contents from remote site loaded - # - Verify contents of loaded file - log ('Open Document From URL', 'pass') - else: - click ('dlgOpenLocation', 'btnCancel') - log ('Open Location dialog still appears', 'error') - log ('Open Document From URL', 'fail') - else: - log ('Open Location dialog does not appear', 'error') - log ('Open Document From URL', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Open Document From URL', 'fail') - -log ('Open Document From URL', 'testend') diff --git a/gedit/gedit11.py b/gedit/gedit11.py deleted file mode 100644 index 704a0a6..0000000 --- a/gedit/gedit11.py +++ /dev/null @@ -1,48 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Cancel the operation after selecting Open Location -log ('Cancel Open Location Operation', 'teststart') -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpenLocation') - # Wait for 2 seconds, let the Open Location dialog window appear - time.sleep (2) - if guiexist ('dlgOpenLocation') == 1: - settextvalue ('dlgOpenLocation', 'txtEnterthelocation', 'http://gnomebangalore.org/ldtp') - # TODO - # - Verify text in location is set or not ? - click ('dlgOpenLocation', 'btnCancel') - if guiexist ('dlgOpenLocation') == 0: - log ('Cancel Open Location Operation', 'pass') - else: - log ('Open Location dialog box still appears', 'error') - log ('Cancel Open Location Operation', 'fail') - else: - log ('Open Location dialog box does not appear', 'error') - log ('Cancel Open Location Operation', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Cancel Open Location Operation', 'fail') -log ('Cancel Open Location Operation', 'testend') diff --git a/gedit/gedit12.py b/gedit/gedit12.py deleted file mode 100644 index 2685043..0000000 --- a/gedit/gedit12.py +++ /dev/null @@ -1,15 +0,0 @@ -#to revert to a saved version of a currently opened document. -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - cuttext('gedit','txtgedit','1;3') - pastetext('gedit','txtgedit',10) - selectmenuitem('gedit','mnuFile;mnuRevert') - click('gedit','btnRevert')#this is giving an ldtp error - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "12 error occured is:", sys.exc_info()[0] diff --git a/gedit/gedit13.py b/gedit/gedit13.py deleted file mode 100644 index 96b10cd..0000000 --- a/gedit/gedit13.py +++ /dev/null @@ -1,72 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# 'Undo' or 'Redo' changes made to a document in gedit -log ('Undo Redo Operation', 'teststart') -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - # Wait 3 seconds, let the Open Dialog appear - time.sleep (3) - if guiexist ('dlgOpenFile') == 1: - # TODO - # - Once GTK File Selector bug is resolved try to select some file from Filesystem shortcuts - selectrow ('dlgOpenFile', 'tblFiles','sample.txt') - click ('dlgOpenFile', 'btnOpen') - time.sleep (2) - # TODO - # - Check file opened or not - if guiexist ('dlgOpenFile') == 0: - log ('Undo Redo Operation', 'pass') - settextvalue ('gedit', 'txtGedit', 'Modifying text content') - # TODO - # - Try to set this text at end - # - Try to set this text in starting - # - Verify text is set or not - - # Do undo operation - selectmenuitem ('gedit', 'mnuEdit;mnuUndo') - # TODO - # - Verify text content is undone - - # Do redo operation - selectmenuitem ('gedit', 'mnuEdit;mnuRedo') - # TODO - # - Verify text content is redone - - selectmenuitem ('gedit', 'mnuFile;mnuClose') - # Wait for 3 seconds, let alert window for changes appear - if guiexist ('alrtSaveWindow') == 1: - click ('alrtSaveWindow', 'btnClosewithoutSaving') - log ('Undo Redo Operation', 'pass') - else: - log ('Alert save window does not appear', 'error') - log ('Undo Redo Operation', 'fail') - else: - log ('Open File dialog window does not appear', 'error') - log ('Undo Redo Operation', 'fail') -except error, msg: - log (str (msg), 'error') - log ('Undo Redo Operation', 'fail') -log ('Undo Redo Operation', 'testend') diff --git a/gedit/gedit14.py b/gedit/gedit14.py deleted file mode 100644 index ed542cd..0000000 --- a/gedit/gedit14.py +++ /dev/null @@ -1,13 +0,0 @@ -#to highlight the contents of the currently opened document. -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - #ctrl-A is not implemented - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "14 error occured is:", sys.exc_info()[0] diff --git a/gedit/gedit15.py b/gedit/gedit15.py deleted file mode 100644 index c7739cf..0000000 --- a/gedit/gedit15.py +++ /dev/null @@ -1,46 +0,0 @@ -# to copy and paste text in gedit. -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - selectmenuitem('gedit', 'mnuEdit;mnuCopy') - selectmenuitem('gedit', 'mnuFile;mnuNew') - selectmenuitem('gedit', 'mnuEdit;mnuPaste') -#using icons - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - click('gedit', 'btnCopy') - selectmenuitem('gedit', 'mnuFile;mnuNew') - click('gedit', 'btnPaste') - - #copying at the end of the document - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - selectmenuitem('gedit', 'mnuEdit;mnuCopy') - #no particular cursor positioning function ..go to line option - selectmenuitem( 'gedit', 'mnuSearch;mnuGotoLine') - settextvalue('dlgGotoLine','txtLinenumber','5') - click('dlgGotoLine','btnGotoLine') - click('dlgGotoLine','btnClose') - selectmenuitem('gedit', 'mnuEdit;mnuPaste') - -#using icons - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - click('gedit', 'btnCopy') - selectmenuitem( 'gedit', 'mnuSearch;mnuGotoLine') - settextvalue('dlgGotoLine','txtLinenumber','10') - click('dlgGotoLine','btnGotoLine') - click('dlgGotoLine','btnClose') - click('gedit', 'btnPaste') - - selectmenuitem('gedit','mnuFile;mnuClose') - click('gedit','btnDon\'tsave') #not clicked - selectmenuitem ('gedit', 'mnuFile;mnuQuit') - click('gedit','btnDon\'tsave') -except: - print "15 error occured is:", sys.exc_info()[0] - - - diff --git a/gedit/gedit16.py b/gedit/gedit16.py deleted file mode 100644 index 6c7b14d..0000000 --- a/gedit/gedit16.py +++ /dev/null @@ -1,37 +0,0 @@ -# to cut and paste text in gedit -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - selectmenuitem('gedit', 'mnuEdit;mnuCut') - selectmenuitem('gedit', 'mnuFile;mnuNew') - selectmenuitem('gedit', 'mnuEdit;mnuPaste') -#using icons - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - click('gedit', 'btnCut') - selectmenuitem('gedit', 'mnuFile;mnuNew') - click('gedit','btnPaste') - - #copying at the end of the document - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - selectmenuitem('gedit', 'mnuEdit;mnuCut') - while settextvalue('gedit','txtgedit',' '): - selectmenuitem('gedit', 'mnuEdit;mnuPaste') - break -#using icons - selectmenuitem('gedit', 'mnuEdit;mnuSelectAll') - click('gedit', 'btnCut') - while settextvalue('gedit','txtgedit',' '): - click('gedit', 'btnPaste') - break - selectmenuitem('gedit','mnuFile;mnuClose') - click('gedit','btnDon\'tsave')#not clicked - selectmenuitem ('gedit', 'mnuFile;mnuQuit') - click('gedit','btnDon\'tsave') -except: - print "16 error occured is:", sys.exc_info()[0] - diff --git a/gedit/gedit17.py b/gedit/gedit17.py deleted file mode 100644 index 7557e9a..0000000 --- a/gedit/gedit17.py +++ /dev/null @@ -1,124 +0,0 @@ -# to do a search for any specified word/phrase in the currently opened document in gedit. -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind','txtSearchfor', 'how') - - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - #search from cursor position - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind', 'txtSearchfor', 'how') - - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') -#case sensitive - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind', 'txtSearchfor', 'how') - #x=int(raw_input("enter choice:1)Search from the beginning of the document 2) Search from the cursor position")) #no such option available - #if x==0: - #if x==1: - if uncheck('dlgFind', 'chkMatchcase') == 0: - check('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - #using find icon - click('gedit','btnFind') - settextvalue('dlgFind','txtSearchfor', 'how') - #no search from beginning option available - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - click('gedit','btnFind') - settextvalue('dlgFind', 'txtSearchfor', 'how') - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') -# 8th testcase not done - click('gedit','btnFind') - settextvalue('dlgFind', 'txtSearchfor', 'how') - if uncheck('dlgFind', 'chkMatchcase') == 0: - check('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnFind') - selectmenuitem('gedit', 'mnuSearch;mnuFindNext')#no keyboard function defined -#searching for phrase - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind','txtSearchfor', 'how are u') - #no search from beginning option available - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - #search from cursor position - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind', 'txtSearchfor', 'how are u') - - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') -#case sensitive - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind', 'txtSearchfor', 'how are u') - #x=int(raw_input("enter choice:1)Search from the beginning of the document 2) Search from the cursor position")) - #if x==0: - #if x==1: - if uncheck('dlgFind', 'chkMatchcase') == 0: - check('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - #using find icon - click('gedit','btnFind') - settextvalue('dlgFind','txtSearchfor', 'how are u') - #no search from beginning option available - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - click('gedit','btnFind') - settextvalue('dlgFind', 'txtSearchfor', 'how are u') - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnClose') - click('gedit','btnFind') - settextvalue('dlgFind', 'txtSearchfor', 'how are u') - if uncheck('dlgFind', 'chkMatchcase') == 0: - check('dlgFind', 'chkMatchcase') - click('dlgFind','btnFind') - click('dlgFind','btnFind') - selectmenuitem('gedit', 'mnuSearch;mnuFindNext')#no keyboard function defined -#finding using any options - selectmenuitem('gedit', 'mnuSearch;mnuFind') - settextvalue('dlgFind', 'txtSearchfor', 'how are u') - x=int(raw_input("enter choice:1)match case 2) don't match case: ")) - if x == 1: - if uncheck('dlgFind', 'chkMatchcase') == 0: - check('dlgFind', 'chkMatchcase') - else: - pass - elif x == 2: - if check('dlgFind', 'chkMatchcase') == 0: - uncheck('dlgFind', 'chkMatchcase') - else: - pass - click('dlgFind','btnFind') - click('dlgFind','btnClose') - selectmenuitem('gedit','mnuFile;mnuClose') - click('gedit','btnDon\'tsave') #ldtp error - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "17 error occured is:", sys.exc_info()[0] - diff --git a/gedit/gedit18.py b/gedit/gedit18.py deleted file mode 100644 index d267ada..0000000 --- a/gedit/gedit18.py +++ /dev/null @@ -1,125 +0,0 @@ -#to replace any word/phrase in the currently opened document with another word/phrase in gedit. -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit','mnuFile;mnuOpen') - selectrowindex('dlgOpenFile', 'tblShortcuts',0) - selectrow('dlgOpenFile', 'tblFiles','sample.py') - click('dlgOpenFile','btnOpen') - selectmenuitem('gedit', 'mnuSearch;mnuReplace') - settextvalue('dlgReplace','txtReplacewith','why') - settextvalue('dlgReplace','txtSearchfor','how') -#no search from beginning option available - if check('dlgReplace', 'chkMatchcase') == 0: - uncheck('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') -#case sensitive - settextvalue('dlgReplace','txtReplacewith','why') - #if verifysettext('dlgReplace', 'txtReplacewith','how') == 1: - # print "it is already 'how'" - settextvalue('dlgReplace','txtSearchfor','how') -#no search from beginning option available - if uncheck('dlgReplace', 'chkMatchcase') == 0: - check('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') -#no 7th testcase since same - settextvalue('dlgReplace','txtReplacewith','why') - if (settextvalue('dlgReplace','txtSearchfor','how')==1 and settextvalue('dlgReplace','txtSearchfor','how')==1): -#no search from beginning option available - if check('dlgReplace', 'chkMatchcase') == 0: - uncheck('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') - else: - print "text occurs more than twice" -#case sensitive - settextvalue('dlgReplace','txtReplacewith','why') - if (verifysettext('gedit','txtgedit','how')==1 and verifysettext('gedit','txtgedit','how')==1): -#no search from beginning option available - if uncheck('dlgReplace', 'chkMatchcase') == 0: - check('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') - else: - print "text occurs more than twice" -# using replace icon - click('gedit','btnReplace') - settextvalue('dlgReplace','txtReplacewith','why') - settextvalue('dlgReplace','txtSearchfor','how') -#no search from beginning option available - if check('dlgReplace', 'chkMatchcase') == 0: - uncheck('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') -#case sensitive - settextvalue('dlgReplace','txtReplacewith','why') - #if verifysettext('dlgReplace', 'txtReplacewith','how') == 1: - # print "it is already 'how'" - settextvalue('dlgReplace','txtSearchfor','how') -#no search from beginning option available - if uncheck('dlgReplace', 'chkMatchcase') == 0: - check('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') - -#no 7th testcase since same - settextvalue('dlgReplace','txtReplacewith','why') - if (verifysettext('gedit','txtgedit','how')==1 and verifysettext('gedit','txtgedit','how')==1): -#no search from beginning option available - if check('dlgReplace', 'chkMatchcase') == 0: - uncheck('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') - else: - print "text occurs more than twice" -#case sensitive - settextvalue('dlgReplace','txtReplacewith','why') - if (verifysettext('gedit','txtgedit','how')==1 and verifysettext('gedit','txtgedit','how')==1): -#no search from beginning option available - if uncheck('dlgReplace', 'chkMatchcase') == 0: - check('dlgReplace', 'chkMatchcase') - click('dlgReplace', 'btnFind') - - if False: - click('gedit','btnOK') - else: - click('dlgReplace', 'btnReplace') - else: - print "text occurs more than twice" -# no 10th testcase - click('dlgReplace', 'btnClose') - selectmenuitem('gedit','mnuFile;mnuClose') - click('gedit','btnDon\'tsave') - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "18 error occured is:", sys.exc_info()[0] - diff --git a/gedit/gedit19.py b/gedit/gedit19.py deleted file mode 100644 index 50be307..0000000 --- a/gedit/gedit19.py +++ /dev/null @@ -1,43 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo Team, Fasila -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# To go to any line in the currently opened document -log ('Go To Line No', 'teststart') - -try: - selectmenuitem ('gedit', 'mnuFile;mnuOpen') - if guiexist ('dlgOpenFile') == 1: - selectrowindex ('dlgOpenFile', 'tblFiles', 'sample.txt') - click ('dlgOpenFile', 'btnOpen') - # NOT COMPLETED - selectmenuitem( 'gedit', 'mnuSearch;mnuGotoLine') - settextvalue('dlgGotoLine','txtLinenumber','3') - click('dlgGotoLine','btnGotoLine') - click('dlgGotoLine','btnClose') - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "19 error occured is:", sys.exc_info()[0] - -log ('Go To Line No', 'testend') diff --git a/gedit/gedit20.py b/gedit/gedit20.py deleted file mode 100644 index 8ca36ce..0000000 --- a/gedit/gedit20.py +++ /dev/null @@ -1,11 +0,0 @@ -#to view installed & uninstalled plugins in gedit. -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit', 'mnuEdit;mnuPreferences') - #if selecttab('dlgPreferences','ptlPreferences','4')== 1: - selecttab('dlgPreferences','ptlPreferences','4') - click('dlgPreferences','btnClose') - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "20 error occured is:", sys.exc_info()[0] diff --git a/gedit/gedit21.py b/gedit/gedit21.py deleted file mode 100644 index dc351e6..0000000 --- a/gedit/gedit21.py +++ /dev/null @@ -1,19 +0,0 @@ -#to view information about any currently available(installed or uninstalled ) plugins in gedit . -launchapp ('gedit') -import sys -try: - selectmenuitem('gedit', 'mnuEdit;mnuPreferences') - selecttab('dlgPreferences','ptlPreferences','4') - click('dlgPreferences','btnAboutPlugin') - click('dlgAboutDocumentStatistics','btnCredits') - click('dlgCredits','btnClose') - click('dlgAboutDocumentStatistics','btnClose')# btnclose is not clicked or not working - selectrowindex('dlgPreferences','tblplugins',3)#cell is not choosed - click('dlgPreferences','btnAboutPlugin') - click('dlgAboutDocumentStatistics','btnCredits') - click('dlgCredits','btnClose') #this is not closed i.e 2nd time - click('dlgAboutDocumentStatistics','btnClose')# btnclose is not clicked or not working - click('dlgPreferences','btnClose') - selectmenuitem ('gedit', 'mnuFile;mnuQuit') -except: - print "21 error occured is:", sys.exc_info()[0] diff --git a/gedit/launch.py b/gedit/launch.py deleted file mode 100644 index 406ff87..0000000 --- a/gedit/launch.py +++ /dev/null @@ -1,54 +0,0 @@ -# -# Linux Desktop Testing Project http://www.gnomebangalore.org/ldtp -# -# Author: -# Aishoo, Fasilla -# A. Nagappan <anagappan@novell.com> -# -# Copyright 2004 Novell, Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. -# - -# Launch an instance of Gedit - -log ('Launch Gedit', 'teststart') - -status = os.fork () -if status == -1: - log ('Unable to fork', 'error') - log ('Launch Gedit', 'testend') - raise LdtpExecutionError (0) -if status == 0: - try: - log ('Gedit is being loaded', 'info') - #os.execvp (gedit_exe_path, []) - try: - status = commands.getstatusoutput (gedit_exe_path) - except KeyboardInterrupt: - # interrupted - print '' - os._exit (os.EX_OK) - except OSError, msg: - log (str (msg), 'error') - log ('Launch Gedit', 'testend') - raise LdtpExecutionError (0) - -# wait for 5 seconds, let the gedit application be loaded -log ('wait for 5 seconds, let the gedit application be loaded', 'info') -time.sleep (5) - -log ('Launch Gedit', 'testend') diff --git a/gedit/open-existingfile.py b/gedit/open-existingfile.py deleted file mode 100644 index 532c44c..0000000 --- a/gedit/open-existingfile.py +++ /dev/null @@ -1,24 +0,0 @@ -#Open existing file -log ('Open-Existing-File', 'teststart') -#selectmenuitem ('gedit', 'mnuFile;mnuClose') -selectmenuitem ('gedit', 'mnuFile;mnuOpen') - -# Open existing file using file index -selectrowindex ('dlgOpenFile', 'tblFiles' , 1) -click ('dlgOpenFile', 'btnOpen') -selectmenuitem ('gedit', 'mnuDocuments;mnuCloseAll') - -# Open existing file -selectmenuitem ('gedit', 'mnuFile;mnuNew') -selectmenuitem ('gedit', 'mnuFile;mnuOpen') -try: - # Open existing file using file name - selectrow ('dlgOpenFile', 'tblFiles','readme') - click ('dlgOpenFile', 'btnOpen') - log ('Passed opening specified file', 'pass') -except error: - print 'Failed to select specified filename' - click ('dlgOpenFile', 'btnCancel') - log ('Failed to select specified filename', 'fail') -selectmenuitem ('gedit', 'mnuDocument;mnuCloseAll') -log ('Open-Existing-File','testend') diff --git a/gedit/open-newfile.py b/gedit/open-newfile.py deleted file mode 100644 index c75b29b..0000000 --- a/gedit/open-newfile.py +++ /dev/null @@ -1,7 +0,0 @@ -#To open a new file -log ('Open-New-File', 'teststart') -selectmenuitem ('gedit', 'mnuFile;mnuClose') -selectmenuitem ('gedit', 'mnuFile;mnuNew') -selectmenuitem ('gedit', 'mnuFile;mnuClose') -log ('Pass', 'pass') -log ('Open-New-File', 'testend') diff --git a/gedit/pagesetup.py b/gedit/pagesetup.py deleted file mode 100644 index ea9158e..0000000 --- a/gedit/pagesetup.py +++ /dev/null @@ -1,8 +0,0 @@ -#To open pagesetup dialog -log ('Launch-PageSetup', 'teststart') -selectmenuitem ('gedit', 'mnuFile;mnuPageSetup'); -click ('dlgPageSetup', 'btnClose') -selectmenuitem ('gedit', 'mnuFile;mnuCloseAll') -selectmenuitem ('gedit', 'mnuFile;mnuQuit') -log ('Launched Page Setup dialog successfully','pass') -log ('Launch-PageSetup','testend') diff --git a/gedit/readme b/gedit/readme deleted file mode 100644 index 84ab803..0000000 --- a/gedit/readme +++ /dev/null @@ -1,18 +0,0 @@ -Readme - - -Test-Suite for gedit(Gnome-2.9.x) - -Testcase Prerequisite --------- ------------ -gedit.py No other instance of - gedit should be opened -open-existing-file A file - should exist at the index '1' on the - Open filedialog.Also,a filename - 'readme' should exist. - -Author: K.SreeKamakshi <poorvakrishna@yahoo.com> - -ps: some test cases where found to have some bugs please rectify and mail back if possible - diff --git a/gedit/sa.py b/gedit/sa.py deleted file mode 100644 index b1c2e75..0000000 --- a/gedit/sa.py +++ /dev/null @@ -1,2 +0,0 @@ -dfdgfffbcuehccbjdj -,m,,,,.,khgdg diff --git a/gedit/sample.py b/gedit/sample.py deleted file mode 100644 index f088b4c..0000000 --- a/gedit/sample.py +++ /dev/null @@ -1,5 +0,0 @@ -thank u -how are u -How do u do -welcome -How How How |