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
  • 230,875
  • 49
  • 477
  • 553
Curunir
  • 1,020
  • 1
  • 11
  • 25

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
  • 28,843
  • 15
  • 145
  • 252
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 ;-)