cancel
Showing results for 
Search instead for 
Did you mean: 

can i run a rest service and verify if there is any entry in the application log files

Highlighted
Contributor

can i run a rest service and verify if there is any entry in the application log files

Hi,

 

Can i run a rest service and verify if there is any entry in the application log file in the server?

The log file's name keeps changing based on the size/date.

 

4 REPLIES 4
Highlighted
Community Hero

Re: can i run a rest service and verify if there is any entry in the application log files

"Run a rest service" - is it happens at the end user side? Usually, server is not accessible to the end users.

Just curious to know if there any good alternatives to check rather than going for server side logs.


Regards,
Rao.
Highlighted
Moderator

Re: can i run a rest service and verify if there is any entry in the application log files

Hi,

 

"Can i run a rest service and verify if there is any entry in the application log file in the server?"

 

Please give more details on what you are trying to accomplish and if this is related to Ready API or not.

 

 

Regards,

Marcus

SmartBear Support



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Contributor

Re: can i run a rest service and verify if there is any entry in the application log files

I agree endusers will not have access to the logs. I am going to test this in local env only.

 

My test case is to test the entry in the log for the rest api execution, as some other team's application is looking for the log entry.

So now I run the api in soapui and manually verifying the logs.

 

Is there any way to automate this?

Highlighted
Community Hero

Re: can i run a rest service and verify if there is any entry in the application log files

  • There must be better way to assert. It not only help you but also for other teams as well( as you mentioned)
  • In case, no alternatives, then you need to provide more details such as
    • what os platform?
    • is test execution remote or local or both?
    • is log will be rolling after it reaches configured size? or constant file?
    • what kind of log is that? xml or plain text? do have any ways to parse the file?


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors