RemObjects Service Tester

Hello,

I try to use RemObjects Service Tester.

I make connection to server Service and all is ok.
I use last DataAbstract, Delphi version.
I use HTTPChanel.

When I select services some “Acceses Violation” appears.
My LoginService is descendent from MultiDbLoginServiceV5
To test login function I need to select BaseLoginService,
select operation LoginEx and select again my LoginService and close some “Access Violation” dialogs.

How can I test Service wich login session need?

Even with DAServer give some “Access Violation” when I change between services and operations.

Best Regards,
Tiberiu

why do you need this? LoginEx method should be present in your LoginService.

I can’t reproduce this issue.
can you give a bit more detailed steps for reproducing, pls?

I don’t need this. My service LoginService is derived from MultiDbLoginServiceV5 and has no explicit Login method. It is used inherited methods.
When I select my LoginService, I don’t see any inherited methods.
It’s like in your DAServer sample.

How do I test a service that requires a login session?

I try to test some method from MegaDemoServer like:TestIntergerArray, TestStringArray but not success. In fact all methods wich don’t have simple type params (integer, datetime, string) can’t be tested. Service tester raise AccessViolation errors or crash.

Best Regards,
Tiberiu

I can’t reproduce any problem with TestIntergerArray, TestStringArray methods.
looks like, it was fixed as a part of 65591: Service Tester crashes on Enum.
This fix is present in latest beta.
you can install a beta into virtual machine, grab ROServiceTester.exe from it and use it

With latest beta version, list of service data and its methods works as expected.

My Login method has this signature:
function Login(const aUserID: Utf8String; const aPassword: Utf8String; const aConnectionName: Utf8String; out aUserInfo: UserInfo): Boolean;

For aUserInfo parameter its return an derived UserInfo class (like in your old samples).

When I try to test this method I receive an exception “Error reading parameter aUserInfo: Object factory for class TROArrayTypeWrapper missing” and ROServiceTester crash.

In my client application (Delphi and JavaScript) this method work as expected.

How do I test an method from a service that requires a login session?

I’ve reproduced this problem

Thanks, logged as bugs://74307

Thanks.

How do I test an method from a service that requires a login session?

you can use LoginEx method with login string like

UserID="my user";Password="my password";Connection="my connection"

bugs://74307 got closed with status fixed.