#!/usr/local/bin/python # -*- coding: UTF-8 -*- """Organising testruns """ # Copyright 2008,2009 eGovMon # This program is distributed under the terms of the GNU General # Public License. # # This file is part of the eGovernment Monitoring # (eGovMon) # # eGovMon is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # eGovMon 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with eGovMon; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1301 USA import SOAPpy import sys import urllib import urlparse import sc import random sco = sc.SystemConfiguration() class egovmonassess: """Site URL server command line tool """ def __init__(self,testrunid): """initialise the class """ self.server = SOAPpy.SOAPProxy(urllib.unquote(sco.siteurlserver)) self.server.addSites(testrunid) def usage(): print """Usage: egovmonassess testrunid """ if __name__ == "__main__": if len(sys.argv)<2: usage() sys.exit(0) testrunid = sys.argv[-1] ea=egovmonassess(testrunid)