Giter Club home page Giter Club logo

oxerptest's Introduction

##OxERPTest Build Status License

Test your OXID ERP in a automated way.

OxERPTest is a CLI Tool based on Symfony2 which calls the OXID ERP and compares the result.

##Installation

  1. Install the dependencies using composer
  2. Create the calls you want to test in var/calls/ as xml files. Use the name given by the OXID ERP naming convention e.g. OXERPGetOrder.xml .
  3. Create the equivalent response xml files for your tests in var/responses. Append the term Response to the call name e.g. OXERPGetOrderResponse.xml.

####Important !! Use the ##SESSIONID## placeholder in the calls to ensure the replacement with the dynamic session id. Checkout the .dummy files for an example.

##Usage ###The test all command Test all your calls using the command

php bin/oxerptest test:all https://www.my-oxidshop.com username password

 // authorizing against the erp                                                                                         

 // collecting calls                                                                                                    

 // got 2 calls start testing...                                                                                        

                                                                                                                        
 [OK] OXERPGetArticle: test passed                                                                                      
                                                                                                                                                                                                                                                
 [OK] OXERPGetOrder: test passed                                                                                        

You can use the optional commands to modify the default behavior:

Options:
      --shopId=SHOPID            the shopId you want to test [default: "1"]
      --languageId=LANGUAGEID    the languageId of the shop you want to test [default: "0"]
      --wsdlversion=WSDLVERSION  the version number of the wsdl [default: "2.12"]

###The test one command Test one specific call

php bin/oxerptest test:one https://www.my-oxidshop.com username password OXREPGetOrder.xml

 // authorizing against the erp                                                                                         
                                                                                                                                                                                                                                                
 [OK] OXERPGetOrder: test passed                                                                                        

You can use the optional commands to modify the default behavior:

Options:
      --shopId=SHOPID            the shopId you want to test [default: "1"]
      --languageId=LANGUAGEID    the languageId of the shop you want to test [default: "0"]
      --wsdlversion=WSDLVERSION  the version number of the wsdl [default: "2.12"]

###The list command To list all your available test

php bin/oxerptest list:tests 

 // collecting calls                                                                                                    

 ! [NOTE] found 1 call(s)...                                                                                            

 // collecting responses                                                                                                

 ! [NOTE] found 1 response(s)...                                                                                        

 // creating summary                                                                                                    

 -------- ------------------ ------------------------- 
  Number   Name of the call   Responsefile available?  
 -------- ------------------ ------------------------- 
  1        OXERPGetOrder      yes                      
 -------- ------------------ ------------------------- 

 -------- ----------------------- --------------------- 
  Number   Name of the Response    Callfile available?  
 -------- ----------------------- --------------------- 
  1        OXERPGetOrderResponse   yes                  
 -------- ----------------------- --------------------- 

##Tests You can test OxERPTest using php vendor/bin/phpunit tests/

oxerptest's People

Contributors

patrick-blom avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

indisc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.