|
102 | 102 | this_file_dirname=os.path.dirname(NEWATTACHMENT_PY) |
103 | 103 | NEWATTACHMENT_PNG=os.path.join(this_file_dirname, 'PyGreat.png') |
104 | 104 |
|
| 105 | +# Servers TestLink Version |
| 106 | +myTLVersion = myTestLink.testLinkVersion() |
| 107 | + |
| 108 | +# used connection settings |
| 109 | +print myTestLink.connectionInfo() |
| 110 | +print "" |
| 111 | + |
105 | 112 | # example asking the api client about methods arguments |
106 | 113 | print myTestLink.whatArgs('createTestCase') |
107 | 114 |
|
|
126 | 133 | # -- END CHANGE v0.4.5 -- |
127 | 134 |
|
128 | 135 |
|
129 | | -print "Number of Projects in TestLink: %s " % (myTestLink.countProjects(),) |
| 136 | +print "Number of Projects in TestLink: %s " % (myTestLink.countProjects()) |
130 | 137 | print "" |
131 | 138 | myTestLink.listProjects() |
132 | 139 | print "" |
|
144 | 151 | # else: |
145 | 152 | # print "Error creating the project '%s': %s " % (NEWPROJECT,isOk) |
146 | 153 | # sys.exit(-1) |
| 154 | +projInfo = 'Example created with Python API class %s in TL %s' % \ |
| 155 | + ( myApiVersion, myTLVersion ) |
147 | 156 | newProject = myTestLink.createTestProject(NEWPROJECT, NEWPREFIX, |
148 | | - notes='Example created with Python API class %s' % myApiVersion, |
149 | | - active=1, public=1, |
| 157 | + notes=projInfo, active=1, public=1, |
150 | 158 | options={'requirementsEnabled' : 0, 'testPriorityEnabled' : 1, |
151 | 159 | 'automationEnabled' : 1, 'inventoryEnabled' : 0}) |
152 | 160 | print "createTestProject", newProject |
|
0 commit comments