Пример #1
0
#!/usr/bin/python
# expCompare [ <expId_spec> ] [ <viewType> ] [ -m <expMetric_list> ] [ <target_list> ]
import openss

my_file = openss.FileList("../../usability/phaseII/fred 900")
my_exptype = openss.ExpTypeList("usertime")
my_expid_1 = openss.expCreate(my_file, my_exptype)

openss.expGo()
openss.wait()

my_file = openss.FileList("../../usability/phaseII/fred 1500")
my_expid_2 = openss.expCreate(my_file, my_exptype)

my_viewtype = openss.ViewTypeList("usertime")
my_metric_list = openss.MetricList(["time"])
my_modifier = openss.ModifierList("function")
my_ids = openss.ExpId

data = openss.expCompare(my_modifier, my_viewtype, my_metric_list)
openss.dumpInfo(data)

openss.exit()
Пример #2
0
#!/usr/bin/python
# expCompare [ <expId_spec> ] [ <viewType> ] [ -m <expMetric_list> ] [ <target_list> ]
import openss

my_file = openss.FileList("../../usability/phaseII/fred 900")
my_exptype = openss.ExpTypeList("usertime")
my_expid_1 = openss.expCreate(my_file,my_exptype)


openss.expGo()
openss.wait()

my_file = openss.FileList("../../usability/phaseII/fred 1500")
my_expid_2 = openss.expCreate(my_file,my_exptype)

my_viewtype = openss.ViewTypeList("usertime")
my_metric_list = openss.MetricList(["time"])
my_modifier = openss.ModifierList("function")
my_ids = openss.ExpId

data = openss.expCompare(my_modifier,my_viewtype,my_metric_list)
openss.dumpInfo(data)

openss.exit()

Пример #3
0
    # print out the status
    exp_mod = openss.ModifierList("status")
    print "This should say []: ", openss.list(exp_mod)

    openss.expDisable(exp_id)
    openss.expGo(exp_id)
    print "This should say []: ", openss.list(exp_mod)

    openss.waitForGo()
    print "This should say []: ", openss.list(exp_mod)

    try:
        data = openss.expView()
        if (data == None):
            print "PASSED"
            openss.wait()  # kluge for late exception return
        else:
            print "FAILED"
    except openss.error, message:
        print "Expected: ", message

except message:
    print "ERROR: ", message

openss.exit()

#exp1 = openss.ExpId(7)
#
#my_modifer = openss.ModifierList("all")
#
#openss.expDisable(exp1,my_modifer)
Пример #4
0
    my_exptype = openss.ExpTypeList("pcsamp")
    exp_id = openss.expCreate(my_file,my_exptype)

    # print out the type
    exp_mod = openss.ModifierList("types")
    print "This should say [pcsamp]: ", openss.list(exp_mod)
    
    openss.expDetach(exp_id,my_exptype)
    print "This should say []: ", openss.list(exp_mod)
    
    my_exptype = openss.ExpTypeList("usertime")
    openss.expAttach(exp_id,my_exptype)
    print "This should say [usertime]: ", openss.list(exp_mod)
    
    openss.expGo(exp_id)
    openss.wait()

    print openss.expView()
    openss.wait() # kluge for delayed exception
    
except openss.error,message:
    print "ERROR: ", message

openss.exit()

#my_id = openss.ExpId(openss.expCreate())
#
#my_host = openss.HostList()
#my_host += ["bimbo","bozo"]
#
#my_rank = openss.RankList()
Пример #5
0
# First time disable the data collection.
try :
    # Create an experiment with pcsamp being the experiment type
    my_file = openss.FileList("../../usability/phaseII/fred 900")
    my_exptype = openss.ExpTypeList("pcsamp")
    exp_id = openss.expCreate(my_file,my_exptype)

    # print out the status
    exp_mod = openss.ModifierList("status")
    print "This should say ['Paused']: ", openss.list(exp_mod)
    
    openss.expDisable(exp_id)
    openss.expGo(exp_id)
    print "This should say ['Running']: ", openss.list(exp_mod)
    
    openss.wait()
    print "This should say ['Terminated']: ", openss.list(exp_mod)

#    openss.expEnable(exp_id)
#    openss.expGo(exp_id)
#    print "This should say ['Running']: ", openss.list(exp_mod)
#    
#    openss.wait()
#    print "This should say ['Terminated']: ", openss.list(exp_mod)

    try:
    	data = openss.expView()
    	if (data  == None):
    	    print "PASSED"
	    openss.wait() # kluge for late exception return
    	else: