Service Virtualization

 View Only
  • 1.  SMTP Virtualization using DevTest

    Posted Jul 15, 2020 07:25 AM
    Hi All,

     Can anyone help me on how to perform SMTP virtualization as I could see there is no specific protocol defined in DevTest tool.

    Thanks,
    Mohammed Sheeraz


  • 2.  RE: SMTP Virtualization using DevTest

    Broadcom Employee
    Posted Jul 20, 2020 06:52 PM
    Some more details on what exactly you are trying to virtualize and a use case would be nice!


    ------------------------------
    Head of Service Virtualization Product Management
    CA Technologies - A Broadcom Company
    ------------------------------



  • 3.  RE: SMTP Virtualization using DevTest

    Posted Jul 21, 2020 02:06 AM
    Hi Koustubh,

    We do have an application where we send email notifications/alerts using prod SMTP server configured. And, to perform NFT if we virtualize this we can avoid load on prod server.

    I have been able to record SMTP transactions over TCP but unable to use it during play back.
    And, I followed this information is provided in the community at https://community.broadcom.com/participate/ideation-home/viewidea?IdeationKey=9c87ef73-5bc1-4eec-971b-429ddc8723df
    But it couldn't help much. Using recorded transactions I created VS having TCP protocol it is not listening to SV server.

    Could you please help me on this.

    org.apache.commons.mail.EmailException: Sending the email to the following server failed : Hostname:8015

      at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1410)

      at org.apache.commons.mail.Email.send(Email.java:1437)

      at com.itko.lisa.glass.SendEmailExecutor.sendEmail(SendEmailExecutor.java:137)

      at com.itko.lisa.glass.SendEmailStepEditor$2.actionPerformed(SendEmailStepEditor.java:286)

      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

      at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

      at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

      at java.awt.Component.processMouseEvent(Unknown Source)

      at javax.swing.JComponent.processMouseEvent(Unknown Source)

      at java.awt.Component.processEvent(Unknown Source)

      at java.awt.Container.processEvent(Unknown Source)

      at java.awt.Component.dispatchEventImpl(Unknown Source)

      at java.awt.Container.dispatchEventImpl(Unknown Source)

      at java.awt.Component.dispatchEvent(Unknown Source)

      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

      at java.awt.Container.dispatchEventImpl(Unknown Source)

      at java.awt.Window.dispatchEventImpl(Unknown Source)

      at java.awt.Component.dispatchEvent(Unknown Source)

      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

      at java.awt.EventQueue.access$200(Unknown Source)

      at java.awt.EventQueue$3.run(Unknown Source)

      at java.awt.EventQueue$3.run(Unknown Source)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

      at java.awt.EventQueue$4.run(Unknown Source)

      at java.awt.EventQueue$4.run(Unknown Source)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

      at java.awt.EventQueue.dispatchEvent(Unknown Source)

      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

      at java.awt.EventDispatchThread.run(Unknown Source)

    Caused by: javax.mail.MessagingException: Exception reading response;

      nested exception is:

      java.net.SocketTimeoutException: Read timed out

      at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2202)

      at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1939)

      at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)

      at javax.mail.Service.connect(Service.java:295)

      at javax.mail.Service.connect(Service.java:176)

      at javax.mail.Service.connect(Service.java:125)

      at javax.mail.Transport.send0(Transport.java:194)

      at javax.mail.Transport.send(Transport.java:124)

      at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400)

      ... 40 more

    Caused by: java.net.SocketTimeoutException: Read timed out