自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 收藏
  • 关注

原创 SSH access GoDaddy

SSH Access - Enable - Manage SSH Keys - Generate a New Keyin terminal ssh username@ip addresswhen prompt, enter password. 

2018-07-31 21:20:48 535

原创 Python

import requestsimport jsonimport csvimport pandas#url = 'https://imi.rhonda.ai/api/job/?search=United&page_size=40'headers = {'Authorization': 'Token 111bb68520a5f7fe63fbd85325118c5f25e56d9e'...

2018-07-13 09:52:12 383

转载 CTFL

Seven Testing Principles:1. Testing shows presence of defects.2. Exhaustive testing is impossible.3. Early testing.4. Defect clustering.5. Pesticide paradox: Test cases need to be regularly reviewed a...

2018-07-05 03:59:45 447

转载 Testing

Equivalence Partitioning:1. Identify the equivalence classes.2. Write the test cases to cover these classes.System Testing:End to end flows test the system as a whole.Test Plan Elements:1. Plan Identi...

2018-07-03 03:41:08 165

转载 Testing

FunctionalUI TestingUAT Testing: User Acceptance TestingAccessibilityAd-hocRegression: Test integrated functionalities. SystemSanityStressBlackboxWhiteboxEnd-to-endSmoke: Quick random test for the maj...

2018-06-25 20:48:09 255

转载 Python Day 8

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

2018-06-12 04:55:19 203

转载 Python Day 7

import socketmysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)mysock.connect( ('data.pr4e.org', 80) )cmd = 'GET http://data.pr4e.ogr/romeo.txt HTTP/1.0\n\n'.encode()mysock.send(cmd)telnet ...

2018-06-06 01:56:39 189

转载 Scrpay Day 1

scrapyscrapy startproject quotes_spiderscrapy genspider quotes quotes.toscrape.comscrapy shell     fetch('http://quotes.toscrape.com/')    response.xpath('//h1')scrapy shell 'http://quotes.toscrape.co...

2018-06-04 09:30:55 219

转载 Python yield

What does the "yield" keyword do?When you see a function with yield statements, apply this easy trick to understand what will happen:1. Insert a line result = [] at the start of the function.2. Replac...

2018-06-04 08:06:35 154

原创 XPATH

XPATH counts from 1Python counts from 0Differnece between signle '/' or double '//':Single slash '/' anywhere in xpath signifies to look for the element immediately inside the parent element.Double sl...

2018-06-04 07:56:02 402

原创 Python Day 6

ccc = dict() #create a dictionaryccc['csev'] = 1 #Key csev Count 1ccc['cwen'] = 1 #Key cwen Count 1ccc['csev'] = ccc['cesv'] + 1 #Key csev count + 1print(ccc){'csev': 1, 'cwen': 2}Key csev has val...

2018-06-01 20:51:33 241

原创 Python Day 5

Parsing and Extracting:data = "From stephon.marquard@uct.ac.za Sat Jan 5 09:14:16 2008"atpos = data.find('@')sppos = data.find(' ', atpos)host = data[atpos+1 : sppos]Using in as a Logical Operato...

2018-05-30 04:07:08 242

原创 Python Day 4

try except else fianlly:try: a = 10 b = 20 c = 10 d = (a + b) / c print(d)except: print("In the except block")else: print("Because there was no exception, else is execut...

2018-05-28 20:24:29 169

转载 Ubuntu

Key map: https://ubuntuforums.org/archive/index.php/t-188761.htmlpc is for function keys.us is for US layout. (BKSL is under US)Install Sublime: http://tipsonubuntu.com/2017/05/30/install-sublime-text...

2018-05-28 06:31:57 314

原创 Python Day 3

while x < 10;print("Value of x is: " + str(x)) x = x + 1 if x == 8: breakelse: print("won't print after break")While/Else:for k,v in d.items(): print(k) print(v).ite...

2018-05-25 21:00:29 159

转载 Launch Sublime Text 2 or 3 from the Mac OSX Terminal

https://ashleynolan.co.uk/blog/launching-sublime-from-the-terminalAs I’m working in the OSX Terminal more and more these days, I'm always on the lookout for time saving shortcuts.A really useful tip t...

2018-05-24 11:30:00 251

原创 Selenium Generic Method to Explicit Wait

from traceback import print_stackfrom utilities.handy_wrappers import HandyWrappersfrom selenium.webdriver.support.ui import WebDriverWaitfrom selenium.webdriver.support import expected_conditions ...

2018-05-22 20:11:06 214

原创 Selenium Implicit Wait VS Explicit Wait

Implicit Wait: If elements are not immediately available, an implicit wait tells Web Driverto poll the DOM for a certain amount of time. The default setting is 0. Onceset, the implicit wait is set for...

2018-05-22 09:46:21 741

原创 System PATH Setup

The following instructions will help you create your own PATH to a unique folder on your Mac or copy the file to an existing PATH directory for ChromeDriver.Download the ChromeDriver executable.Now we...

2018-05-17 03:46:54 222

原创 OneDrive Setup

Login your OneDrive account. Your default folder is your own files.Choose Shard from left bar. Click the folder you want to sync. DO NOT check any radio.For Windows, have to uninstall OneDrive to clea...

2018-05-17 03:06:23 1523

原创 unittest

import unittestclass LoginTest(unittest.TestCase): def test_validLogin if adminIcon is not None: print("Login Successful") else: print("Login Failed")

2018-05-16 00:13:49 146

原创 pytest

import pytest@pytest.yield_fixture()def setUp(): print("Once before every method") yeild print("Once after every method") def test_methodA(setUp): print("Runnin...

2018-05-16 00:12:23 640

原创 Python Day 2 Unit Test

import unittestclass TestCaseDemo(unittest.TestCase) def setUp(self): print("This will run once before evry test") def test_methodA(self): print("Test A") def test_met...

2018-05-15 04:12:33 151

原创 Selenium Day 2

driver.execute_script()Run JavaScript commands.driver.execute_script("arguments[0].scrollIntoView(true);, element)element will be scrolled to the top of the page.header may cover the element when you ...

2018-05-15 03:13:44 159

原创 Selenium Day 1

find_element_by_id()find_element_by_name()find_element_by_xpath()find_element_by_css_selector()find_element_by_link_text() :链接tag的文字内容 不是链接地址find_element_by_partial_link_text() :链接tag的文字内容的一部分 不是...

2018-05-10 22:06:34 122

原创 Python Day 1

text = "This Is Mixed Case"#print(text + 2) Can't convert 'int' object to str implicitlyprint(text + str(2))print(text + "2")substring = a[1:6]# Starting index is inclusive# Ending index is exclu...

2018-05-09 19:42:31 153

原创 PHP Day 3

$_GET is an array of variables passed to the current script via the URL parameters.$_POST is an array of variables passed to the current script via the HTTP POST method.PHP - Validate Name$name = test...

2018-04-26 11:26:39 219

原创 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 parameters (although such usage is rare) while print can take one argument.strlen()...

2018-04-25 11:47:55 118

原创 PHP Day 1

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.A PHP ...

2018-04-24 13:35:33 208

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除