コードセグメントレコード

2656 ワード

JAva接続oracle文字列の2つの方法
“jdbc:oracle:thin:@host:port:sid” (short connection string)


“jdbc:oracle:thin:@(DESCRIPTION=	(ADDRESS =	(PROTOCOL = TCP)
(HOST = host)
(PORT = port)
)
(CONNECT_DATA=
(SERVICE_NAME=sid)
(SERVER=DEDICATED)
)
)” (full server string)

C#RSAの暗号解読とJavaとの変換を実現
https://www.cnblogs.com/Laggage/p/11028614.html
fiddlera javaのリクエストのキャプチャ
System.setProperty("http.proxyHost", "localhost"); 
System.setProperty("http.proxyPort", "8888"); 
System.setProperty("https.proxyHost", "localhost");
System.setProperty("https.proxyPort", "8888");


airtest
https://airtest.readthedocs.io/zh_CN/latest/all_module/airtest.core.android.android.html https://www.jianshu.com/p/b5ceb98ef9d1
from airtest.core.android.android import Android

devs = device()  
print(devs.list_app(third_only=True))  #         
start_app('com.tencent.wework',activity=None)  #  app
install_app(filepath, replace=False) #          ,replace   False, True         App
snapshot(filename=None,ensure_orientation=True) #           ,ensure_orientation          
wake() #    
home() #  home 
path_app(package)  #  package    
check_app(package)  #  package      ,  True or False

JAva面接問題
public class HelloA {
   public HelloA(){
        System.out.println("A");
    }
    {
        System.out.println("B");
    }
    static {
        System.out.println("C");
    }
}

public class HelloB extends  HelloA{
    public  HelloB(){
        System.out.print("D");
    }
    {
        System.out.println("E");
    }
    static {
        System.out.println("F");
    }

    public  static  void main(String[]args){
        new HelloB();
    }

}


結果
C
F
B
A
E
D

python直接airetest
from airtest.core.api import *
from airtest.cli.parser import cli_setup
import json

if not cli_setup():
    auto_setup(__file__, logdir=True, devices=[
       "Android:///?cap_method=javacap&ori_method=adbori",  #  
        # "Android:///emulator-5554?cap_method=javacap&ori_method=adbori",
        # "Android:///emulator-5556?cap_method=javacap&ori_method=adbori",
       #  "Android://127.0.0.1:5037/emulator-5554?cap_method=javacap&ori_method=adbori",
       #  "Android://127.0.0.1:5037/F8UDU16203002433?cap_method=javacap&ori_method=adbori",
    ])

devs=device()
print(devs.list_app(third_only=True))
home()
print('uuid:'+devs.uuid)