GithubHelp home page GithubHelp logo

work_day's Introduction

work_day

robot framework

安装:

  • 1.先安装 robot framework:py -3.7 -m pip install robotframework
    • 这种安装会安装最新的版本,需要考虑安装 python 的版本是否支持,官方文档 说支持 Python 2.7 and Python 3.5+
  • 2.安装 seleniumlibrary:py -3.7 -m pip install --upgrade robotframework-seleniumlibrary
    • 这种安装会安装最新的版本,需要考虑和 robot framework 的支持,官方文档 说 SeleniumLibrary 5.1 支持 Python 3.6+
  • 3.安装对应浏览器的驱动,方式有两种
    • 第一种直接去官方上下载对应浏览器版本的驱动程序
    • 第二种使用 webdrivermanager 下载
      • 安装:py -3.7 -m pip install webdrivermanager
      • 下载对应的驱动到指定目录:webdrivermanager firefox chrome --linkpath /usr/local/bin,linkpath 后接保存驱动的地方,前面的 firefox chrome 表示要下载的驱动

Pycharm

使用技巧:

  • 设置自己想运行的命令:设置->工具->外部工具
    • 名称起一个和执行命令相关的
    • 程序填入执行程序的绝对路径,比如D:\python37\Scripts\robot.exe
    • 参数可以填入一些特殊的标识,比如-d $ContentRoot$\tmp\ $FilePath$
    • 工作目录一般就是 $ProjectFileDir$,当前项目的绝对路径

CMD

CMD常用命令

  • 生成固定大小的文件:fsutil file createnew .\test.pdf 104857600,createnew后面接【文件名或绝对路径] + 【文件大小(字节)】,104857600为100M

SQL SERVER

SQL SERVER 2109

  • 判断两个字符串是否相等:
    • 使用"="判断,不区分大小写:SELECT CASE WHEN 'a'='A' THEN '相等' ELSE '不相等' END,结果是相等
    • 使用CAST或者CONVERT转码的方式,区分大小写:SELECT CASE WHEN CAST('a' AS varbinary)=CAST('A' AS varbinary) THEN '相等' ELSE '不相等' END,结果不相等
    • 比较的时候会自动去除右边的空格:SELECT CASE WHEN 'a '='A' THEN '相等' ELSE '不相等' END,结果相等
  • 使用DATEADD修改时间(格式为'2021-09-28 06:32:10')的时候,需要转码一次,否则格式不正确
    • 语句:UPDATE ... SET samplingtime=CONVERT(varchar(20), cast(DATEADD(DAY, 2, samplingtime) as datetime), 20) ...

work_day's People

Contributors

jr1qq4 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.