18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Using _runUnitTests but want to namespace tests

beemanbeeman Members
edited November -1 in Sahi - Open Source
Is it possible to use _runUnitTests and namespace the tests?
Trying to wrap the tests in a namespace doesn't seem to work. Are there any other options?

/**
@namespace myNameSpace
*/
var $myNameSpace = {

/**
* documenting my test
*/
function testNumber1()
{ }
}


Reason: Want to document the tests using js toolkit.

OS: OSX
FF 9
Sahi 3.5

Comments

  • Hi beeman

    you may use something like var $case= new TestCase in your functions. This would provide a log like with unitTests... but you couldn't use the API... I am not really sure if this would work,. Narayan wrote some snippets on the latest webinar.. I thought he would post the video on his page, but I can't find it.

    Could someone of the Admins please make the webinar video available or provide some documentation on the TestCase class?
Sign In or Register to comment.