Open Sources30 Locust Sample Code locustfile.pyfrom 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 = 50.. 2018. 11. 27. PhantomJS(팬텀JS) 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').crea.. 2018. 11. 26. locust 관련 정보 http://docs.locust.io/http://httpbin.org/ 2017. 8. 25. unable to resolve class com.jayway.jsonpath.JsonPath Error 아래와 같은 Groovy script를 작성할 경우, Command로 돌릴 경우에 Error가 발생한 import groovy.json.JsonSlurper;import com.eviware.soapui.support.types.StringToStringMap;import static com.jayway.jsonpath.JsonPath.parse def responseContent = testRunner.testCase.getTestStepByName("signin").testRequest.response.contentAsString;def access_token = parse(responseContent).read('token.access_token');def token_type = parse(resp.. 2017. 5. 31. 이전 1 2 3 4 ··· 8 다음