- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 selenium(python)实现生成报告与发送邮件
#conding=utf-8from HTMLTestRunner import HTMLTestRunnerimport unittestimport timeimport yagmaildir = "./test_case"suits = unittest.defaultTestLoader.discover(dir,pattern="test*.py") #disco...
2020-04-27 17:47:08 557
原创 selenium元素定位方法介绍(与unittest结合、以csdn为例)
#coding=utf-8from selenium import webdriverfrom HTMLTestRunner import HTMLTestRunnerfrom selenium.webdriver.common.keys import Keysfrom selenium.webdriver import ActionChainsfrom selenium.webdriv...
2020-04-27 11:08:02 193
原创 java接口
class Interface{ public void doAnyThing(){ System.out.println("父类的方法doAnyThing"); } public static void main(String[] args){ System.out.println("父类的main函数"); drawtes...
2020-04-26 18:13:01 116
原创 Java异常处理try catch finally
import java.io.EOFException;import java.io.FileNotFoundException;import java.io.IOException;import java.sql.SQLException;import java.util.Scanner;public class exception extends Exception{ //...
2020-04-23 19:02:19 133
原创 Java的Random & Math
//随机数import java.util.Random;public class math{ public static char GetRandomChar(char a1,char a2){ return (char)(a1 + Math.random()*(a2-a1+1)); //Math.random返回0-1之间的数,[a1,a2] } ...
2020-04-03 11:53:22 141
原创 Java的DecimalFormat类
import java.text.DecimalFormat;public class DecimalFormatSimpleDemo { //对浮点型数字进行格式化 public static void Format(String pattern,double value){ //设置格式化模式 DecimalFormat a = new De...
2020-04-02 17:47:17 176
原创 Java的包装类
public class summation_integer {public static void main(String[] args){ //integer_ceshi(); //boolean_ceshi(); //byte_ceshi(); //character_ceshi(); double_ceshi();}public static ...
2020-04-02 16:11:15 117
原创 IDEA使用Junit单元测试
引入hamcrest-core-1.3.jar & junit-4.12.jarctrl + shift + t左键点击,runJunit不能是static,java.lang.Exception: Method main() should not be static不能有变量,java.lang.Exception: Method main should have n...
2020-04-02 10:28:35 1056
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人