本文整理汇总了Python中myTools.sectionEndTimeStamp函数的典型用法代码示例。如果您正苦于以下问题:Python sectionEndTimeStamp函数的具体用法?Python sectionEndTimeStamp怎么用?Python sectionEndTimeStamp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sectionEndTimeStamp函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: fCreate_Discounts
def fCreate_Discounts(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("discounts" + str(pMonth))
logging.debug('fCreate_Discounts: ' + str(pMonth))
# list the client that will get a refund each month
discountClients = ["Natick","Orange","Oakham","Oak Bluffs","Southampton","Otis","Oxford","Leyden","Monroe","Monson","Methuen","Uxbridge"]
oneClient = discountClients[(pMonth - 1)]
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
discountAmount = 49 + pMonth/float(100)
fCreate_OneDiscount(oneClient,pMonth,discountAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:25,代码来源:trans_Discounts.py
示例2: fStartTS_CreateNewDB
def fStartTS_CreateNewDB():
#---------------------------------------------------#
"""
main driver
- calls fDelete_DataFolder, fStart_TS, fCheckFor_PEP,
- calls fEnter_NewDBWizard, fEnter_GeneralSettings, fEnter_GettingStartedWizard
- makes backup "-new"
"""
myTools.sectionStartTimeStamp("new db")
logging.debug('StartTS_CreateNewDB')
popup("make sure Timeslips is closed")
fDelete_DataFolder()
fStart_TS()
fCheckFor_PEP()
fEnter_NewDBWizard()
fEnter_GeneralSettings()
fEnter_GettingStartedWizard()
# backup
time.sleep(1)
if exists("backup_database.png"):
click("no_btn.png")
time.sleep(1)
type("n")
fCheckFor_BillingDate()
fCheckFor_SPS()
fCheckFor_PEP()
myTools.sectionEndTimeStamp()
backup_Data.fBackup_Checkpoint("new")
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:db_New.py
示例3: fCreate_Categories
def fCreate_Categories():
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("categories")
logging.debug("fCreate_Categories")
# make sure timeslips has focus
myTools.getFocus()
logging.debug("- open category list")
type("p", KeyModifier.ALT)
# hot keys changed for TS2014
if int(Settings.tsVersion) < 2014:
type("i")
else:
type("o")
time.sleep(1)
for category in ["Construction", "General", "Landscape", "Hardware", "Supplies", "Materials", "Other"]:
logging.debug("-- create: " + category)
type("n", KeyModifier.ALT)
type(category)
type(Key.ENTER)
logging.debug("- close list")
myTools.pressTAB(4)
type(Key.ENTER)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:settings_Categories.py
示例4: fCreate_FinanceCharges
def fCreate_FinanceCharges(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("finance" + str(pMonth))
logging.debug('Create_FinanceCharges: ' + str(pMonth))
allClients = names_Init.fInit_Clients()
count = 0
myTools.getFocus()
# client list
type("i",KeyModifier.CTRL)
for oneClient in allClients:
count += 1
# always create finance charge for first 5 clients
# then create finance charge for 1 out of 35 next clients
if (count in range(6)) or ((count + pMonth) % 35 == 0):
financeCharge = str(count) + ".99"
fCreate_OneFinanceCharge(oneClient,count,pMonth,financeCharge)
else:
logging.debug('-- skip: ' + str(pMonth) + "-" + oneClient)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:28,代码来源:client_FinanceCharges.py
示例5: fCreate_Writeoffs
def fCreate_Writeoffs(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("writeoffs" + str(pMonth))
logging.debug('Create_Writeoffs: ' + str(pMonth))
count = 0
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
clientList = ["Blackstone","Carver"]
for woClient in clientList:
count += 1
if woClient == "Blackstone":
woAmount = 2
else:
woAmount = 3
woAmount = woAmount + pMonth/float(100)
fCreate_OneWriteOff(woClient,count,pMonth,woAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:trans_Writeoff.py
示例6: fCreate_ReplacementSlips
def fCreate_ReplacementSlips(pReplClient):
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("replacement slips")
logging.debug("fCreate_ReplacementSlips")
type("m", KeyModifier.CTRL)
time.sleep(1)
# create some time slips
slips_Create.Create_OneSlip("t", "TomH", "gen004", pReplClient, 1) # override - General
slips_Create.Create_OneSlip("t", "CoreyM", "gen005", pReplClient, 2) # donotbill - General
slips_Create.Create_OneSlip("t", "SamS", "lnd011", pReplClient, 3) # billable - Landscape
slips_Create.Create_OneSlip("t", "ShawnR", "lnd010", pReplClient, 4) # nocharge - Landscape
slips_Create.Create_OneSlip("t", "JamesR", "lnd011", pReplClient, 5) # billable - Landscape
# create some expense slips
slips_Create.Create_OneSlip("e", "ShawnR", "e006", pReplClient, 6) # donotbill - Supplies
slips_Create.Create_OneSlip("e", "SamS", "e009", pReplClient, 7) # billable - Supplies
slips_Create.Create_OneSlip("e", "CoreyM", "e003", pReplClient, 8) # nocharge - Supplies
slips_Create.Create_OneSlip("e", "TomH", "e008", pReplClient, 9) # override - Supplies
slips_Create.Create_OneSlip("e", "JamesR", "e010", pReplClient, 10) # billable - Other
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:28,代码来源:slips_ReplacementSlips.py
示例7: fEdit_Client
def fEdit_Client():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("edit client")
logging.debug('Edit_Client')
# make sure timeslips has focus
myTools.getFocus()
fEdit_CliGenInfo()
fEdit_CliCustom()
fEdit_CliRatesNotes()
logging.debug('- save')
type("s",KeyModifier.CTRL)
time.sleep(1)
fEdit_DefaultRates()
fEdit_InterestSetting()
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:25,代码来源:client_Edit.py
示例8: fPrecision_Setup
def fPrecision_Setup():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba Precision")
logging.debug("ba Precision")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-Precision")
type(Key.ENTER)
time.sleep(1)
# get to Rounding field
if int(Settings.tsVersion) < 2015:
myTools.pressF6(4)
time.sleep(1)
myTools.pressTAB(8)
else:
myTools.pressF6(7)
time.sleep(1)
myTools.pressTAB(7)
time.sleep(1)
type(Key.UP)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:ba_Precision.py
示例9: fProgressTotal_Setup1
def fProgressTotal_Setup1():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot1")
logging.debug("ba ProgressTot1")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(4)
# switch to minimum
type(Key.HOME)
myTools.pressDOWN(11)
# enter details
type(Key.TAB)
type(Key.ENTER)
time.sleep(1)
type("500")
time.sleep(1)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KEY_CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py
示例10: fCreate_BASlips
def fCreate_BASlips(pBAClient):
# ---------------------------------------------------#
"""
calls slips_Create.Create_OneSlip to create 4 time slips and 4 expense slips
for each billing arrangement bill
"""
myTools.sectionStartTimeStamp("ba slips")
logging.debug("fCreate_BASlips")
type("m", KeyModifier.CTRL)
time.sleep(1)
# create some time slips
slips_Create.Create_OneSlip("t", "TomH", "con001", pBAClient, 1)
slips_Create.Create_OneSlip("t", "CoreyM", "gen004", pBAClient, 2)
slips_Create.Create_OneSlip("t", "SamS", "gen005", pBAClient, 3)
slips_Create.Create_OneSlip("t", "ShawnR", "lnd010", pBAClient, 4)
# create some expense slips
slips_Create.Create_OneSlip("e", "ShawnR", "e004", pBAClient, 5)
slips_Create.Create_OneSlip("e", "SamS", "e005", pBAClient, 6)
slips_Create.Create_OneSlip("e", "CoreyM", "e006", pBAClient, 7)
slips_Create.Create_OneSlip("e", "TomH", "e003", pBAClient, 8)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:30,代码来源:ba__Common.py
示例11: fPrint_BABill
def fPrint_BABill(pBAClient, pBillNum):
# ---------------------------------------------------#
"""
backs up the database ("-before")
prints the bill to text file
approves the bill
backs up the database ("-after")
"""
baBillName = pBAClient + str(pBillNum)
backup_Data.fBackup_Checkpoint(baBillName + "-before")
myTools.sectionStartTimeStamp("ba bill")
logging.debug("BA_Bill: " + baBillName)
type("b", KeyModifier.CTRL)
time.sleep(1)
click("remove_filters.png")
time.sleep(1)
type(Key.ENTER)
type(Key.DOWN)
type(Key.TAB)
type(Key.SPACE)
type(pBAClient)
time.sleep(1)
type(Key.F4)
type(Key.ENTER)
myTools.pressSHIFTTAB(3)
type("t")
type(Key.ENTER)
time.sleep(1)
type(Settings.repFolder + "\\" + baBillName + ".txt")
# for checkmark in findAll("checkmark.png"):
# click(checkmark)
time.sleep(1)
type(Key.ENTER)
time.sleep(1)
if exists("replace_msg.png"):
type(Key.ENTER)
time.sleep(1)
wait("approve_bill.png", FOREVER)
click("approve_bill.png")
type(Key.ENTER)
time.sleep(1)
if exists("select_report_to_print.png"):
type(Key.ESC)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type("n")
myTools.sectionEndTimeStamp()
backup_Data.fBackup_Checkpoint(baBillName + "-after")
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:60,代码来源:ba__Common.py
示例12: fBill_BillFields
def fBill_BillFields():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("bill fields")
logging.debug("fBill_BillFields")
buName = Settings.tsVersion + "-bill-12b"
backup_Data.fRestore_Backup(buName)
reportName = "BillFields-13-" + Settings.tsVersion + ".txt"
myTools.getFocus() # make sure timeslips has focus
if int(Settings.tsVersion) < 2016: # to get around a defect in pre-2016
type("i",KeyModifier.CTRL) # open client info and close it to load custom fields
time.sleep(1)
type("o",KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
bill_ImportLayout.fImport_BillLayout("Fields") # import the layout
fSet_BillDate(12) # set billing data to 12/27 for text bills
fPrint_BillsToText(reportName) # print all bills to one text file
reports_Compare.Compare_OneReport(reportName)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:28,代码来源:bill_BillFields.py
示例13: fCreate_PaymentsToAccount
def fCreate_PaymentsToAccount(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("paystoaccount" + str(pMonth))
logging.debug('Create_PaysToAccount: ' + str(pMonth))
allClients = names_Init.fInit_Clients()
count = 0
myTools.getFocus()
# open funds list
type("f",KeyModifier.CTRL)
myTools.waitForFundsList()
# create PTA for first 5 clients and then every 6th client
for oneClient in allClients:
count += 1
if (count in range(6)) or ((count + pMonth) % 6 == 0):
ptaAmount = 25 + pMonth/float(100)
fCreate_OnePayToAccount(oneClient,count,pMonth,ptaAmount)
else:
logging.debug('-- skip: ' + str(pMonth) + "-" + oneClient)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:31,代码来源:trans_PaymentsToAccount.py
示例14: fCreate_Transfers
def fCreate_Transfers(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("transfers" + str(pMonth))
logging.debug('Create_Transfers: ' + str(pMonth))
allClients = ["East.Bridgewater","North.Adams","West.Boylston"]
count = 0
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
for oneClient in allClients:
count += 1
transferAmount = 10 + int(count) + pMonth/float(100)
fCreate_OneTransfer(oneClient,count,pMonth,transferAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:26,代码来源:trans_Transfers.py
示例15: fContingencyExp_Setup2
def fContingencyExp_Setup2(pBAClient):
#---------------------------------------------------#
myTools.sectionStartTimeStamp(pBAClient + "2")
logging.debug(pBAClient + "2")
# open client
myTools.openClient(pBAClient)
# get to arrangement field for exp
ba__Common.fMoveto_BAPage()
myTools.pressTAB(6)
# enter details
type(Key.ENTER)
time.sleep(1)
# if int(Settings.tsVersion) > 2014:
# myTools.pressTAB(1)
# else:
myTools.pressTAB(2)
type(Key.DOWN)
# save and close
type(Key.ENTER)
type("s",KeyModifier.CTRL)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:33,代码来源:ba_Contingency_Exp.py
示例16: fPrint_SlipFields
def fPrint_SlipFields(pReportMonth,pRepExt):
#---------------------------------------------------#
# this does not include applied fields, since we fixed some stuff in ts2016
myTools.sectionStartTimeStamp("print slipfields")
# name report file: ex: UDSlip1-03
reportName = myTools.buildRepName("UDSlip2",pRepExt)
logging.debug('Print_UDSlip2: ' + reportName)
myTools.getFocus()
logging.debug('- open report list')
type("r",KeyModifier.ALT)
type("s")
time.sleep(1)
logging.debug('- choose report')
type("UDS SlipFields")
time.sleep(1)
# fSort_SlipReportFields()
fChoose_CSV_Print(reportName)
myTools.waitForReport()
reports_Compare.Compare_OneReport(reportName)
# close the report
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type("n")
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:33,代码来源:report_UDSlip.py
示例17: fCreate_Refunds
def fCreate_Refunds(pMonth):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("refunds" + str(pMonth))
logging.debug('fCreate_Refunds: ' + str(pMonth))
# list the client that will get a refund each month
refundClients = ["Hawley","Haverhill","Hatfield","Harwich","Harvard","Hawley","Haverhill","Hatfield","Harwich","Harvard","Hawley","Haverhill"]
oneClient = refundClients[(pMonth - 1)]
myTools.getFocus()
# open a/r tran list
type("t",KeyModifier.CTRL)
myTools.waitForTransList()
refundAmount = 99 + pMonth/float(100)
fCreate_OneRefund(oneClient,pMonth,refundAmount)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
myTools.checkProcesses()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:25,代码来源:trans_Refunds.py
示例18: fPrint_SlipListCalc
def fPrint_SlipListCalc(pReportMonth,pRepExt):
#---------------------------------------------------#
myTools.sectionStartTimeStamp("print slipcalcs")
# name report file: ex: UDSlip1-03
reportName = myTools.buildRepName("UDSCalc",pRepExt)
logging.debug('Print_UDSCalc: ' + reportName)
myTools.getFocus()
logging.debug('- open report list')
type("r",KeyModifier.ALT)
type("s")
time.sleep(1)
logging.debug('- choose report')
type("uds c")
time.sleep(1)
# fSort_SlipReportFields()
fChoose_CSV_Print(reportName)
myTools.waitForReport()
reports_Compare.Compare_OneReport(reportName)
# close the report
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type("n")
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:report_UDSlip.py
示例19: fProgressTotal_Setup3
def fProgressTotal_Setup3():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot3")
logging.debug("ba ProgressTot3")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(5)
# enter details
type(Key.ENTER)
time.sleep(1)
type("700")
time.sleep(1)
type("u", KeyModifier.ALT)
type(Key.END)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py
示例20: fSetup_ClientHold
def fSetup_ClientHold():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("set up client hold")
logging.debug('set up client hold')
# make sure timeslips has focus
myTools.getFocus()
logging.debug('- open client list')
type("n",KeyModifier.ALT)
type("i")
time.sleep(1)
fHold_Time_NextBill_Hours()
fHold_Exp_AllBills_Amount()
fHold_Bill_AllBills_AmountAndHours()
fHold_AR_AllBills()
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:25,代码来源:client_Hold.py
注:本文中的myTools.sectionEndTimeStamp函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论