原创 unittest

import unittest class LoginTest(unittest.TestCase): def test_validLogin if adminIcon is not None:

原创 PHP Day 3

$_GET is an array of variables passed to the current script via the URL par

原创 PHP Day 2

echo has no return value while print has a return value of 1 so it can be used in expressions.echo can take multiple pa

原创 Selenium Day 2

driver.execute_script()Run JavaScript commands.driver.execute_script("arguments[0].scrollIntoView(true);, element)eleme

原创 pytest

import pytest @pytest.yield_fixture() def setUp(): print("Once before every method") yield pri

原创 Python Day 1

text = "This Is Mixed Case" #print(text + 2) Can't convert 'int' object to str implicitly print(text + str(2)) print(te

原创 PHP Day 1

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.PHP is a widely-us

原创 Selenium Day 1

find_element_by_id() find_element_by_name() find_element_by_xpath() find_element_by_css_selector() find_element_by_link

原创 Python Day 2 Unit Test

import unittest class TestCaseDemo(unittest.TestCase) def setUp(self): print("This will run once before e

原创 Python Day 8

The dir() command lists capabilities. SQL: Structured Query LanguageCRUD: Create Read Update DeleteDocumentation String

原创 Python

import requests import json import csv import pandas#有header的API調用並寫入文件 url = 'https://imi.rhonda.ai/api/job/?search=Un

原创 Python Day 5

Parsing and Extracting:data = "From [email protected] Sat Jan 5 09:14:16 2008" atpos = data.find('@') sppos =

原创 Scrpay Day 1

scrapyscrapy startproject quotes_spiderscrapy genspider quotes quotes.toscrape.comscrapy shell     fetch('http://quotes

原创 SSH access GoDaddy

SSH Access - Enable - Manage SSH Keys - Generate a New Key in terminal ssh username@ip address when prompt, enter passw

原创 Testing

Equivalence Partitioning:1. Identify the equivalence classes.2. Write the test cases to cover these classes.System Test