기본 콘텐츠로 건너뛰기

8월, 2017의 게시물 표시

크롬웹드라이버 테스트 케이스 작성

1.파이썬 설치 32비트용 :  http://python.org/ftp/python/2.7.6/python-2.7.6.msi 64비트용 :  http://python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi 1.1 설치 프로그램을 완료 1.2 경로에 파이썬 추가  win+r   cmd 실행  setx PATH "C:\Python27;C:\Python27\Scripts;C:\Python27\Lib\site-packages"  setx 가 안먹는다. 수동으로 path 에 추가 할려고 환경변수 열었더니 잡혀있음. cmd 창 새로 열고 python 입력 하니 잘 동작.cmd 창을 재시작 해야 하는 거였음. 1.3 pip 설치 C:\Python27 에 다운로드 https://bootstrap.pypa.io/get-pip.py   cmd 에서         > python get-pip.py 1.4 test.py 작성 ( 피터윤님 코드 :  https://medium.com/@peteryun/python-selenium%EC%9D%84-%ED%99%9C%EC%9A%A9%ED%95%9C-%ED%81%AC%EB%A1%A4%EB%9F%AC-%EB%A7%8C%EB%93%A4%EA%B8%B0-b055cefd1195 ) import time from selenium import webdriver import xlrd from xlutils.copy import copy from selenium.common.exceptions import NoSuchElementException,StaleElementReferenceException import os # driver로 wiki 접속 driver = webdriver.Chrome(executable_path="C:/Users\yunhwan\workspace\crazy\chromedriver.exe

DDD data duplication

https://www.infoq.com/news/2014/11/sharing-data-bounded-contexts 데이터 베이스를 도메인 주도 설계 방법으로 설계 하다 보면 중복되는 데이터가 생길 때 두 테이블이 하나로 합쳐 질 수 있을 때 어떻게 하나의 의문이 들어. 찾아 보았다 DDD book 의 원작자인 Eric evans 의 인터뷰 http://dddcommunity.org/news/index-html-2/ 에릭 에반스의 글을 인용 하였다 Using  Domain-Driven Design  (DDD) to separate the concerns of a large system into  bounded contexts  with each context using its own data store often results in a need to share some common data,  Julie Lerman  recently  explained  in MSDN Magazine. When Julie, a  Microsoft MVP  since 2003, began learning about DDD, she struggled with the duplication of data such a separation could result in, but an explanation by  Eric Evans , author of the original  DDD book , cleared things up: You have to choose where to pay the price of complexity. Because DDD is about reducing complexity in the software, the outcome is that you pay a price with respect to maintaining duplicate models and possibly duplicate data