레이블이 testing인 게시물을 표시합니다. 모든 게시물 표시
레이블이 testing인 게시물을 표시합니다. 모든 게시물 표시

2016년 8월 29일 월요일

Vorlon.JS - 원격 자바스크립트 디버깅 툴



Homepage: http://vorlonjs.com/
GitHub: https://github.com/MicrosoftDX/Vorlonjs/

원격 자바스크립트 디버깅 툴 이라고 설명은 적어놓았지만
제대로 된 설명은 아래와 같습니다.

"An open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript. Powered by node.js and socket.io."

플랫폼에 종속되지 않고 원격으로 자바스크립트를 디버깅, 테스트가 가능한 툴.
(Node.js 와 Socket.io 를 이용함)

현재 버전은 0.3.0 입니다.
앞에 버전 번호가 0 인걸로 봐서 아직 개발이 활발히 진행중인
프로젝트인 것 같습니다.

실제 데모 영상은 다음 링크에 있습니다.
http://www.vorlonjs.com/#demo (유튜브에 올라가 있지 않아서 직접 눌러서 보셔야할 듯 합니다.)

- 설치
$npm install -g vorlon

- 실행
$vorlon

실행 전에 해당 웹 앱 페이지에 스크립트 코드를 넣어주셔야합니다.
<script src="http://localhost:1337/vorlon.js"></script>

이렇게 하면 vorlon에서 사용하는 socket.io에 연결되어서
디버깅, 테스트를 진행 할 수 있습니다.

현재 진행하는 Cordova나 웹 페이지 개발에
테스트, 디버깅에 한번 사용해봐야겠습니다.

2016년 3월 24일 목요일

Nightwatch.js

Nightwatch.js
homepage: http://nightwatchjs.org/
Nightwatch.js GitHub: https://github.com/nightwatchjs/nightwatch

Nightwatch.js is testing solution.
In nightwatch homepage say:
 "Nightwatch.js is an automated testing framework for web applications and websites, written in Node.js and using the Selenium WebDriver API."

- Guide
Guide : http://nightwatchjs.org/guide

- Install

//install nightwatch
$npm install nightwatch

//install selenium server
$wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar

//runing
$java -jar selenium-server-standalone-2.53.0.jar

11:47:47.404 INFO - Launching a standalone Selenium Server
11:47:47.690 INFO - Java: Oracle Corporation 25.60-b23
11:47:47.690 INFO - OS: Windows 8.1 6.3 x86
11:47:47.819 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
11:47:48.155 INFO - Driver class not found: com.opera.core.systems.OperaDriver
11:47:48.155 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
11:47:48.169 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN8_1
11:47:48.170 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
11:47:48.170 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
11:47:49.851 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
11:47:49.851 INFO - Selenium Server is up and running

//help selenium server
$java -jar selenium-server-standalone-2.53.0.jar -help

- Configure
//file setting, nightwatch.json

- In my test

1. Start selenium server
$java -jar selenium-server-standalone-2.53.0.jar

2. Start nightwatch

##Before start nightwatch##
$npm install nightwatch -g
$mkdir nightwatch-test
$cd nightwatch-test
$npm install nightwatch
$cp -r node_modules/nightwatch/examples .
##End##

//Do tests
$nightwatch

[Digg] Test Suite
=================
digg module is disabled, skipping...

[Github] Test Suite
===================

Running:  Demo test GitHub

Error retrieving a new session from the selenium server
{ state: 'unhandled error',
  sessionId: null,
  hCode: 17478365,
  value:
   { buildInformation:
      { buildRevision: '35ae25b',
        buildTime: '2016-03-15 17:00:58',
        releaseLabel: '2.53.0',
        hCode: 87554,
        class: 'org.openqa.selenium.internal.BuildInfo' },
     cause: null,
     systemInformation: 'System info: host: \'pineoc-pc\', ip: \'192.168.99.1\', os.name: \'Windows 8.1\', os.arch: \'x86\', os.version: \'6.3\', java.version: \'1.8.0_60\'',
     additionalInformation: '\nDriver info: driver.version: FirefoxDriver',
     screen: null,
     suppressed: [ [length]: 0 ],
     class: 'org.openqa.selenium.WebDriverException',
     localizedMessage: 'Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: WIN8_1\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:5
8\'\nSystem info: host: \'pineoc-pc\', ip: \'192.168.99.1\', os.name: \'Windows 8.1\', os.arch: \'x86\', os.version: \'6.3\', java.version: \'1.8.0_60\'\nDriver info: driver.version: FirefoxDriver',
     supportUrl: null,
     message: 'Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: WIN8_1\nBuild info: version: \'2.53.0\', revision: \'35ae25b\', time: \'2016-03-15 17:00:58\'\nSyst
em info: host: \'pineoc-pc\', ip: \'192.168.99.1\', os.name: \'Windows 8.1\', os.arch: \'x86\', os.version: \'6.3\', java.version: \'1.8.0_60\'\nDriver info: driver.version: FirefoxDriver',
     hCode: 5692872 },
  class: 'org.openqa.selenium.remote.Response',
  status: 13 }

Connection refused! Is selenium server started?

...
install firefox please.

I will return install firefox next time.


JIRA Plugin - ScriptRunner 소개 #2

관련 글 소개 #1:  https://pineoc.blogspot.com/2019/03/scriptrunner-1.html ScriptRunner 소개 #2 지난 글에서는 Behaviours를 보았고 다음 내용인 콘솔, 리스너 등을 ...