eslid = open(r"D:\test.txt").readlines()
for line in eslid:
line = line.strip('\n')
print server.send_cmd('ESL_QUERY_REALTIME',[{"eslid":line}])
def jb1(self):
print 'jb1 start' +ctime()
n = 0
jb1_eslid = open(r".\118.txt").readlines() #数据格式为eslid+sku。中间不需...
if __name__ == '__main__':
# unittest.main()
try:
# 跑一个class
# suite1 = unittest.TestLoader().loadTestsFromTestCase(HELLO)
# suite1 = unittest.TestLoader().loadTestsFromTestCase(SALES_QUERY_ACK)
# suite1 = unittest.TestLoader().loadTestsFromTestCase(UNBIND)
# suite1 = unittest....
#-*- coding:UTF-8 -*-
import sys, unittest, xmlrpclib, time, socket, select, multiprocessing , random,sqlite3
from main import database
import esl_init
from main import create_task_data
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import SimpleXMLRPCRequestHandl...
# -*- coding:utf-8 -*-
import time,difflib,sys
fa = open('D:\HS_B_02.txt')
a = fa.readlines()
fa.close()
fb = open('D:\\hs_goods_esl_pr.txt')
b = fb.readlines()
fb.close()
c = [i for i in a if i not in b]
fc = open('D:\C.txt', 'w')
fc.writelines(c)
fc.close()
set.intersection(...
# -*- coding:utf-8 -*-
import sys,pymssql
'''
try:
conn = pymssql.connect(host="192.168.2.109",user="hanshow",password="hanshow", database="yonghui1")
except pymssql.OperationalError, msg:
print "error: Could not Connection SQL Server!please check your dblink configure!"
sy...
#-*- coding:UTF-8 -*- #
import sys, unittest, xmlrpclib, time, socket, select, multiprocessing , random,sqlite3,re,unicodedata,requests,time,json
from main import database
import esl_init
from main import create_task_data
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCS...
#-*- coding:UTF-8 -*-
import sys, unittest, xmlrpclib, time, socket, select, multiprocessing , random ,sqlite3,re
from main import database
import esl_init
from main import create_task_data
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import SimpleXMLRPCRequestH...
BUG 主题填写规范
【XXX项目名称或者基线版本】【功能点】【主题描述(简明扼要)】
备注:【功能点】提交bug时,如shop-web 中问题在商品管理模块,那么提交bug时选择该系统模块,问题在添加商品时出现,那么功能点就【添加商品】
BUG 描述
【测试环境】
描述操作系统、软件环境
【操作步骤】
描述bug出现的实际步骤描述
【实际结果】
【预期结果】
要求:以后问题单提交有截图的,务必上传图片及相关的log信息。
问题单需一对一来描述,不要一个问题连带多个结果描...
set HEAP=-Xms256m -Xmx256m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m
改为:
set HEAP=-Xms256m -Xmx1024m
set NEW=-XX:NewSize=128m -XX:MaxNewSize=512m
首先,不要把你的模块名写成socket.py ,因为python自动把当前目录的py文件当作模块来import了
# -*- coding: utf-8 -*-
import socket,sys
from fileinput import filename
host = ""
port = 51423
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
s.bi...
python -m compileall
%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib\logkit-2.0.jar
#-*- coding:UTF-8 -*-
import urllib2
import urllib
import cookielib
import re
login_url = 'http://192.168.2.127:8080/shopweb/login'
bind_url = 'http://192.168.2.127:8080/shopweb/bind'; # 登陆用户名和密码
data={
"username":"chengtao",
"password":"000000"
} ...
from selenium import webdriver
import win32api,win32con,time
from selenium.webdriver import ActionChains
class shopWeb(object):
def exit(self):
s.implicitly_wait(3)
s.quit()
def bind(self,salesno,eslid):
s.get("http://192.168.2.127:8080/shopweb/...
# encoding: utf-8
import time, sys, os, multiprocessing, platform, gc, threading
import esl_init, core, updata, query, bind, xmlserver, database, api20
import osd, beacom, ftp_server, netlink, summary, htp, dot_temp
from daemon import Daemon
import heartbeat, Queue, socket
from esl_init i...
#mysql 的语句笔记
----
#查询当前时间
mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2017-02-14 19:28:01 |
+---------------------+
1 row in set (0.02 sec)
select * from hs_esl order by \c
ctrl + u
#sql语句中使用变量 “@” 设置变量
mysql> select @nam...
#coding = utf-8
import sqlite3
#1、建立與數據庫的連接
db = '/usr/local/navicat/db.sqlite'
connection=sqlite3.connect(db);
#2、創建數據遊標
cursor=connection.cursor()
#3、執行查詢語句
#cursor.execute("""select date('NOW')""")
cursor.execute("select * from bind_li...
#coding = utf-8
import MySQLdb,sqlite3
def conmysql(sqlname,selectcmd):
conn=MySQLdb.connect(host='localhost',user='root',passwd
='123456',port=3306,charset='utf8')
conn.select_db(sqlname) #選擇數據庫
cur=conn.cursor()
#cur.execute(...
#encoding: utf-8
import sys, unittest, xmlrpclib, time, socket, select, multiprocessing , random
from main import database
import esl_init
from main import create_task_data
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCServer import SimpleXMLRPCRequestHandler
import o...
from xml.dom import minidom
import unittest
#######################################################################
class ReadXml(object):
def ReadXml(self,filename,elementfirstnode,num,elementsecondnode):
dom = minidom.parse(filename)
root = dom.documentElement
...
#-*- coding:utf-8 -*-
'''
Created on 2016-6-8
@author: Administrator
'''
import sys, unittest, xmlrpclib, time, socket, select, multiprocessing , random,os
import database, esl_init
from main import create_task_data
from SimpleXMLRPCServer import SimpleXMLRPCServer
from SimpleXMLRPCSer...