Service Virtualization

Expand all | Collapse all

Email notification when VS is down

  • 1.  Email notification when VS is down

    Posted Sep 07, 2018 01:58 AM

    Hi All,

     

    I'm using DevTest work station v10.3.  Is there any way to send email notification when the deployed and running virtual service goes offline ?



  • 2.  Re: Email notification when VS is down
    Best Answer

    Broadcom Employee
    Posted Sep 07, 2018 07:50 AM

    I recommend using the Continuous Validation Service (you'll need to start Coordinator and Simulator for this).

     

    Write a simple test case that invokes your service.  If it fails, use the "Send Email" step to send a notification.  Deploy the test case to CVS and schedule it to run periodically (like every 10 minutes).

     

    --Mike



  • 3.  Re: Email notification when VS is down

    Posted Sep 07, 2018 10:54 AM

    Thanks for your reply Mike. To invoke the service, I used "http GET" step as attached. But when i run this step, I'm not getting any response. 

    But when i checked the URL (https://localhost:1505/api/Dcm/VSEs/VSE ), I can able to get the deployed VSE's details in XML format. Please guide me to resolve this issue.



  • 4.  Re: Email notification when VS is down

    Broadcom Employee
    Posted Sep 07, 2018 11:39 AM

    Are you trying to confirm the status of an individual service - or of the entire VSE server?

     

    If you're trying to get the status of an individual service, I'd need access to your project to find out why your service isn't responding.

     

    --Mike



  • 5.  Re: Email notification when VS is down

    Posted Sep 10, 2018 01:49 AM

    Hi Mike,

     

    I'm trying for entire VSE server.



  • 6.  Re: Email notification when VS is down

    Posted Sep 24, 2018 02:46 AM

    Hi Mike_Gavaghan can you please look into this ?



  • 7.  Re: Email notification when VS is down

    Broadcom Employee
    Posted Sep 24, 2018 09:02 AM

    Hi,

     

    I'd need you to attach your project to understand why your REST call isn't working.

     

    --Mike



  • 8.  Re: Email notification when VS is down

    Posted Sep 27, 2018 01:37 AM
      |   view attached

    Hi Mike_Gavaghan , PFA the project file for reference. I'm trying with the REST step as well as http.

    Attachment(s)

    zip
    CheckVSE.zip   12 KB 1 version


  • 9.  Re: Email notification when VS is down

    Broadcom Employee
    Posted Sep 30, 2018 02:20 PM

    Both of your test cases look good and I'm seeing a response.

     

    When you're not seeing a response, are you running the test in ITR?  In other words, are you seeing a screen like this?

    If this is what you're talking about, then you're encountering a UI bug - I've seen this behavior before.  You see a response the first time you run the test, but not after you reset the session and run it again.  I suggest ending the ITR session with the trash can icon and then opening a new one.

     

    On the other hand, have I simply misunderstood your question?

     

    --Mike



  • 10.  Re: Email notification when VS is down

    Posted Oct 03, 2018 05:44 AM

    Yes Mike_Gavaghan , I'm running in ITR mode and getting the below error. Please find the below and attached the error for reference.

     

    ============================================================================ | HTTP ============================================================================ | Step: REST Call to Invoke API ---------------------------------------------------------------------------- | Message: javax.net.ssl.SSLException: Received fatal alert: unexpected_message ---------------------------------------------------------------------------- | Trapped Exception: Received fatal alert: unexpected_message | Trapped Message: javax.net.ssl.SSLException: Received fatal alert: unexpected_message ---------------------------------------------------------------------------- STACK TRACE javax.net.ssl.SSLException: Received fatal alert: unexpected_message at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1074) at com.itko.lisa.test.CommTrans.send(CommTrans.java:843) at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:767) at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:221) at com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:171) at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:380) at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984) at com.itko.lisa.test.TestCase.execute(TestCase.java:1297) at com.itko.lisa.test.TestCase.execute(TestCase.java:1198) at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183) at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1115) at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:73) at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:1017) at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195) at java.lang.Thread.run(Thread.java:745) ============================================================================



  • 11.  Re: Email notification when VS is down

    Broadcom Employee
    Posted Oct 03, 2018 01:45 PM

    Okay, now I understand.  There's some conflict between how the client and server are negotiating the SSL connection.  This is strange because they're both DevTest components.  You can try adding these two settings to Workstation.vmoptions:

     

    -Dcom.sun.net.ssl.enableECC=false
    -Djsse.enableSNIExtension=false

     

    If that doesn't fix your problem, I suggest opening a support case.

     

    --Mike