3

I need to have some kind of unit testing in my current XPage project. Problem is that I do not have access to the server so I can not install testing frameworks onto the server. I can only access the application from the Notes Designer and get all files from the git repository.

How can I implement unit testing under these conditions?

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Curunir
  • 1,186
  • 2
  • 13
  • 30

2 Answers2

0

I can think of 2 suggestions:

  • Whatever response your server is to return, can't you just stub/mock them?

  • Can't you just create a dummy server and then have another target in your application which you change the basepath of its endPoint/URLS and on the dummy server/subdomain install whatever framework you need?

change:

https://Curunir.com/users/

to:

https://Dummy.Curunir.com/users/
mfaani
  • 33,269
  • 19
  • 164
  • 293
0

On OpenNTF is JUnit project for XPages, created by Christian Gudemann, https://www.openntf.org/main.nsf/project.xsp?r=project/org.openntf.junit.xsp

I did a basic test, it worked ;-)