Skip to content

dialogpsi/Finch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ideamart SMS and USSD Testing Framework.


Finch UI ###Note

  • Test.php and testserver.php must be on the same folder.
  • Goto index.html and link test.php to run the tests.
  • App server URL is the test.php

Tests

    //Create Finch

    $opt=new Finch(App Url,App ID);
    
    Eg-:
        $opt=new Finch('http://localhost/dialog/listener.php', 'APP_000001');
    
    
    // Create SMS Tests
     $optsms->assertmatchsms(Test Name,Message Sent,Message Expected);
     
     Eg-:
        $optsms->assertmatchsms("First Message","hi start","This message is sent only to one user");
    
    
    // Create USSD Tests
    $optsms->assertmatchsms(Test Name,Message Sent,Message Expected,ussdoperation);
    
    Eg-:
        $optussd->assertmatchussd("Main Menu",'123','1. One 2. Two 99. Exit','mo-init');
    

    // Create Custom Tests
    $optussd->customTest(Test Name , Test Message, Test True for passes );
    
    Eg -:
        $optussd->customTest("Test DB","Test Works","false");

======= Finch

About

Ideamart Testing Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published