## page was renamed from Testing/Automation/Desktop/NewApplications If you want to add test suites to an Ubuntu application that is not yet available in the framework you will need some python coding knowledge and should have some knowledge of the LDTP framework. When adding a new Ubuntu application to the framework, you will need to edit the mago/applications/ubuntu.py file. When adding a new generic GNOME application to the framework, you will need to edit the mago/applications/gnome.py file. In the first one, add a new child class of Application, for the selected application, following the template below: {{{#!python class (Application): """ Description of the class """ """ Application constant labels """ WINDOW = "frmPasswordsandEncryptionKeys" LAUNCHER = "seahorse" def __init__(self): Application.__init__(self, ubuntu_constants.) def do_stuff(self, arg1, arg2): """ Description of the method @type arg1: @param arg1: description of first argument @type arg2: @param arg2: description of second argument argument """ application = ooldtp.context(self.name) #insert here the ldtpcode def do_other_stuff(self, arg1, arg2): """ Description of the method @type arg1: @param arg1: description of first argument @type arg2: @param arg2: description of second argument argument """ application = ooldtp.context(self.name) #insert here the ldtpcode }}} All the constants of the application, such as window titles, button names, etc. should be described as strings at the beginning of the class. All the applications should have these methods: * '''__init__''': It calls the parent's __init__ method with the name of the window title for the new one. * The rest of the methods will use ldtp calls to do common stuff with the application: write text, create documents, etc. === The test suites folder === When adding a new application to the framework, you should also create a new folder in the root mago folder called as the application name. This folder will be the container of the testsuites related to this application. Please, refer to the [[https://wiki.ubuntu.com/Testing/Automation/Desktop/NewTests|document about creating new tests]] for more information about how to add new test suites to the new application.