Exemple #1
0
#!/usr/bin/python
# -*- coding:utf-8 -*-
from Tools import tools_v000 as tools
import os
from os.path import dirname
from MyHours import myhours as m


# -10 for the name of this project dailyScrum
save_path = os.path.dirname(os.path.abspath("__file__"))
propertiesFolder_path = save_path + "/"+ "Properties"

# Example of used
# user_text = tools.readProperty(propertiesFolder_path, 'dailyScrum', 'user_text=')

# Open Browser
tools.openBrowserChrome()

m.connectToMyHours()
m.enterCredentials()
m.startTrackWithDescription(u'', u'Daily Scrum', u'Business operations (non project / service related tasks) (P0710) - Business operations (non project / service related tasks)')

# Exit Chrome
tools.driver.quit()
#!/usr/bin/python
# -*- coding:utf-8 -*-
from Tools import tools_v000 as tools
import os
from os.path import dirname
from MyHours import myhours as m

# -18 for the name of this project cafeAdministration
save_path = os.path.dirname(os.path.abspath("__file__"))
propertiesFolder_path = save_path + "/" + "Properties"

# Example of used
# user_text = tools.readProperty(propertiesFolder_path, 'cafeAdministration', 'user_text=')

# Open Browser
tools.openBrowserChrome()

m.connectToMyHours()
m.enterCredentials()
m.startTrackWithDescription(
    u'', u'Café + eau + pause',
    u'Business operations (non project / service related tasks) (P0710) - Business operations (non project / service related tasks)'
)

# Exit Chrome
tools.driver.quit()
Exemple #3
0
#     m.enterCredentials()
#     m.startTrack()
# else :
#     print ("Not needed to start the time")

# Jira part
j.connectToJira(j.jira)
j.recoverJiraInformation()
# j.startJira()

# Create folder link to this JIRA
j.createFolderJira(j.jira)
j.createFileInto(j.jira, j.jiraTitle, j.description_text, j.jira,
                 j.jira + "_Comment_v001")

# Update MyHours
# m.connectToMyHours()
# if isStartMyHoursNeeded != True :
#     m.enterCredentials()
# print ("Start Jira epic_link : " + j.epic_link)
# m.modifyTrack(j.jira, j.jira + ' - ' + j.jiraTitle, j.epic_link)
m.connectToMyHours()
m.enterCredentials()
m.startTrackWithDescription(j.jira, j.jira + ' - ' + j.jiraTitle, j.epic_link)

#
tools.openFolder(j.save_path + j.jira)
tools.openFile(j.save_path + j.jira + '/' + j.jira + '_Comment_v001.txt')

# Exit Chrome
tools.driver.quit()
#!/usr/bin/python
# -*- coding:utf-8 -*-
from Tools import tools_v000 as tools
import os
from os.path import dirname
from MyHours import myhours as m


# -18 for the name of this project cafeAdministration
save_path = os.path.dirname(os.path.abspath("__file__"))
propertiesFolder_path = save_path + "/"+ "Properties"

# Example of used
# user_text = tools.readProperty(propertiesFolder_path, 'mailadministration', 'user_text=')

# Open Browser
tools.openBrowserChrome()

m.connectToMyHours()
m.enterCredentials()
m.startTrackWithDescription(u'', u'Mail + administration', u'Business operations (non project / service related tasks) (P0710) - Business operations (non project / service related tasks)')

# Exit Chrome
tools.driver.quit()
Exemple #5
0
#!/usr/bin/python
# -*- coding:utf-8 -*-
from Tools import tools_v000 as tools
import os
from os.path import dirname
from MyHours import myhours as m

# -18 for the name of this project cafeAdministration
save_path = os.path.dirname(os.path.abspath("__file__"))
propertiesFolder_path = save_path + "/" + "Properties"

# Example of used
# user_text = tools.readProperty(propertiesFolder_path, 'cafeAdministration', 'user_text=')

# Open Browser
tools.openBrowserChrome()

m.connectToMyHours()
m.enterCredentials()
m.startTrackWithDescription(u'TOS-3087',
                            u'TOS-3087 - Work unforeseen CINS/IT4IT | ',
                            u'RUN Life_CINS/IT4IT')

# Exit Chrome
tools.driver.quit()