Skip to content
Ant-Ren edited this page Nov 30, 2012 · 7 revisions

Introduction

SmartQA web engine is a simple tool based on selenium webdriver, current version contains selenium 2.25.0.
For script API, please see WebEngine public methods, in script it is renamed: core.
Note: This project is open source under Apache License version 2.0.

Why use SmartQA

  • script developer don't need any programming skills, just simple API calling in script
  • script developer only need to know xpath knowledge, that's enough
  • for advance use, script developer can still use any java or groovy technique in their script

How to use SmartQA

  • store xpath of web element in path folder, mapping each xpath to a keyword
  • write scenario script in scenario folder calling API handle web action by keyword

Example script:

//visit sina NBA page, read east top team name.
core.navigate('http://www.sina.com.cn');
core.click('sport_link');
core.click('nba_link');
core.mouseover('east_rank_link');
name = core.getText('top_name_text');
return name;

Library dependency

Limited by GitHub repository size, I don't upload referenced lib, so instead of upload here list the 3rd party library jar files I used: (most of them can get from http://seleniumhq.org)

Selenium 2.25 Library

  • apache-mime4j-0.6.jar
  • bsh-1.3.0.jar
  • cglib-nodep-2.1_3.jar
  • commons-codec-1.6.jar
  • commons-collections-3.2.1.jar
  • commons-exec-1.1.jar
  • commons-io-2.0.1.jar
  • commons-jxpath-1.3.jar
  • commons-lang-2.6.jar
  • commons-logging-1.1.1.jar
  • cssparser-0.9.5.jar
  • guava-12.0.jar
  • hamcrest-core-1.1.jar
  • hamcrest-library-1.1.jar
  • htmlunit-2.9.jar
  • htmlunit-core-js-2.9.jar
  • httpclient-4.1.3.jar
  • httpcore-4.1.3.jar
  • httpmime-4.1.3.jar
  • ini4j-0.5.2.jar
  • jcommander-1.13.jar
  • jna-3.4.0.jar
  • jna-platform-3.4.0.jar
  • json-20080701.jar
  • junit-dep-4.10.jar
  • nekohtml-1.9.15.jar
  • netty-3.2.7.Final.jar
  • operadriver-0.14.jar
  • protobuf-java-2.4.1.jar
  • sac-1.3.jar
  • selenium-java-2.25.0.jar
  • selenium-java-2.25.0.jar 2.cpgz
  • selenium-java-2.25.0.jar.cpgz
  • serializer-2.7.1.jar
  • testng-6.0.1-nobsh-noguice.jar
  • webbit-0.4.8-SNAPSHOT.jar
  • xalan-2.7.1.jar
  • xercesImpl-2.9.1.jar
  • xml-apis-1.3.04.jar

Groovy2.0 Library

  • antlr-2.7.7.jar
  • asm-4.0.jar
  • asm-analysis-4.0.jar
  • asm-commons-4.0.jar
  • asm-tree-4.0.jar
  • asm-util-4.0.jar
  • groovy-2.0.5.jar

Log4j2.0 Library

  • log4j-api-2.0-beta3.jar
  • log4j-core-2.0-beta3.jar

For anyone problem or suggestion, please send email me: rmy29003@gmail.com