리더쉽 관련 책 5권 이상 읽기

JMeter 적용해보기

iOS Applnum 적용해보기

다른 회사 구경가기

입사 서류 준비하기

'일상에서' 카테고리의 다른 글

원칙의 중요성  (0) 2018.11.29
팀에서 가장 중요하다가 생각하는 것  (0) 2018.11.28
남은 1달 동안 시도해볼 것  (0) 2018.11.28
첫 리더라는 직책을 던져버리며  (0) 2018.11.22
팀의 첫 인원을 뽑을때  (0) 2018.11.22
QA는 왜 필요한가?  (0) 2018.11.21


locustfile.py

from locust import HttpLocust, TaskSet


def login(l):

    l.client.post("/goodnight/api/v3/users/signin/normal", {"email":"joe.cho@email.com", "pw":"password", "social_id":0})


def profile(l):

    l.client.get("/goodnight/api/v3/users/profile")


class UserBehavior(TaskSet):

    tasks = {profile: 1}


    def on_start(self):

        login(self)


class WebsiteUser(HttpLocust):

    task_set = UserBehavior

    min_wait = 5000

    max_wait = 9000 


locust -f locustfile.py --host=https://SEVER_IP 


http://127.0.0.1:8089/


'Open Sources > ETC' 카테고리의 다른 글

Locust Sample Code  (0) 2018.11.27
PhantomJS(팬텀JS)  (0) 2018.11.26
locust 관련 정보  (0) 2017.08.25
Kali Linux (칼리 리눅스)  (0) 2016.10.11
Vagrant  (0) 2016.07.20
Slack  (0) 2016.07.11

PhantomJS is a headless web browser scriptable with JavaScript. It runs on Windows, macOS, Linux, and FreeBSD.

Using QtWebKit as the back-end, it offers fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

The following simple script for PhantomJS loads Google homepage, waits a bit, and then captures it to an image.

var page = require('webpage').create();
page.open('http://www.google.com', function() {
    setTimeout(function() {
        page.render('google.png');
        phantom.exit();
    }, 200);
});

PhantomJS is an optimal solution for:

Page automation
Access webpages and extract information using the standard DOM API, or with usual libraries like jQuery.
Screen capture
Programmatically capture web contents, including SVG and Canvas. Create web site screenshots with thumbnail preview.
Headless website testing
Run functional tests with frameworks such as Jasmine, QUnit, Mocha, WebDriver, etc.
Network monitoring
Monitor page loading and export as standard HAR files. Automate performance analysis using YSlow and Jenkins.

Ready to play with PhantomJS? Install and follow the Quick Start guide.

Want to learn more? Read the FAQ, explore more examples, and study the complete API documentation.

For the source code, issue tracker, and other development information, visit github.com/ariya/phantomjs.



'Open Sources > ETC' 카테고리의 다른 글

Locust Sample Code  (0) 2018.11.27
PhantomJS(팬텀JS)  (0) 2018.11.26
locust 관련 정보  (0) 2017.08.25
Kali Linux (칼리 리눅스)  (0) 2016.10.11
Vagrant  (0) 2016.07.20
Slack  (0) 2016.07.11

+ Recent posts