Service Virtualization

 View Only
Expand all | Collapse all

Recording option in Devtest portal

  • 1.  Recording option in Devtest portal

    Posted Sep 07, 2020 09:49 AM
    Hi Everyone,
    I have been trying recording option from Devtest Portal 10.6 for a while now. Once I click on 'Start Recording' nothing seems to happen no transaction is getting recorded. I opened the rest API in a different tab and clicked on 'enter' button while the recording is on but that transaction is not getting recorded.

    Am i missing anything?

    Thanks, Arun


  • 2.  RE: Recording option in Devtest portal

    Posted Sep 07, 2020 12:03 PM
    Can somebody please respond to this query


  • 3.  RE: Recording option in Devtest portal

    Posted Sep 08, 2020 01:11 AM
    Hi Arun,

    While recording, lets assume i have a live service url "http://www.chemspider.com/MassSpecAPI.asmx?op=GetDatabases" then recording configuration may look as below:

    Once, this is configured i will start sending request to http://devtestmachinehostname:port?op=GetDatabases and i will be able to get the transactions (orange box highlighted in above image)

    Thanks 


    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 4.  RE: Recording option in Devtest portal

    Posted Sep 08, 2020 10:18 AM
    Hi Vaibhav,

    I have a test url (its working if try to hit it from browser or soap ui or postman, i.e. giving response) 

    I have done exactly similar process as you explained but trx orange color box is not getting updated

    Please advise

    Thanks, Arun


  • 5.  RE: Recording option in Devtest portal

    Posted Sep 08, 2020 10:28 AM
    Hi Arun,

    Once configured, you have to use devtest machine's IP & port configured in-place of hostname and port in actual service url. If transaction box is not getting updated, this means you are not getting any traffic on the configured port & host.​

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 6.  RE: Recording option in Devtest portal

    Broadcom Employee
    Posted Sep 08, 2020 10:36 AM
    Hi Arun,

    If it is working from Browser and Postman then it should work if you configured endpoint to to use VSE Host and Port unless the client application don't have access to VSE Host and Port.

    You can validate the access using Telnet VSEHost Port where you are making a call to the VSE Recorder. 

    Regards,
    Prema



  • 7.  RE: Recording option in Devtest portal

    Posted Jan 15, 2021 07:59 AM
    Hi Vaibhav/Premalatha,

    Sorry for coming back late on this thread

    I am trying to record one action from a website

    1.  I have devtest portal and opened this website (both are in same machine)
    2.  As I clicked on recording option (by default devtest portal assigned one port number ) on the recorder screen and in the drop down there are two options one is 'All' and another one is 'Devtest host ip address' so I ha
    ve selected Devtest host
    3. And on the right side given the website URL
    4. now i have clicked on 'Start recording' option and trying to navigate one action but nothing is getting recorded

    Are you saying i need to update Devtest host and port in the website to get trafffic?


    Thanks, Arun


  • 8.  RE: Recording option in Devtest portal

    Posted Jan 15, 2021 08:37 AM
    Hi Arun,

    You have to redirect url to recording port instead of actual app port. (also try using IP once if localhost/hostname doesn't work)

    While recording, lets assume i have a live service url "http://www.chemspider.com/MassSpecAPI.asmx?op=GetDatabases" then recording configuration may look as below:

    Once, this is configured i will start sending request to http://devtestmachinehostname:port?op=GetDatabases and i will be able to get the transactions (orange box highlighted in above image)

    Thanks 


    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 9.  RE: Recording option in Devtest portal

    Posted Jan 15, 2021 08:50 AM
    Sorry Vaibhav,

    I can not follow

    Could you please elaborate what 'recording port' and 'actual port' here 

    Local host and host name are same in my case . The machine I am using is designated for Devtest server . 

    Thanks, Arun


  • 10.  RE: Recording option in Devtest portal

    Posted Jan 15, 2021 08:58 AM
    Hi Arun,


    Please see above:

    Now lets take an example:
    Actual service URL : http://serverIP:9000/vaibhav
    Actual service URL Host & port : serverIP:9000

    Host Configured in DevTest for recording :serverIP  (as you have app & devtest running on same machine)
    Port configured in Devtest for recording (automatically assigned) : 63213

    ----------------Recording started-----------------

    Now to trigger the transactions for recording, you have to use url -- http://serverIP:63213/vaibhav instead of http://serverIP:9000/vaibhav and then the transaction count will start increasing.

    Hope this helps.

    Thanks



    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 11.  RE: Recording option in Devtest portal

    Posted Jan 18, 2021 08:07 AM
    Hi Vaibhav,

    Thank you for explaining.

    Just further more clarification pls. Sorry I am asking very basic questions

    1. Even though I am running the app (in this case it is a portal ) running from Devtest server it is not having the same IP address as that of Devtest. They are different. I tried 'ping' and 'tracert' to get the IP of the portal
    2. So in your example in place of serverIP should i use devtest server IP or application IP ?
    3. If something has to be changed at application level I do not have access

    Please advise

    Thanks, Arun




  • 12.  RE: Recording option in Devtest portal

    Posted Jan 18, 2021 08:28 AM
    Hi Arun,

    Instead of your app host & port you can use the host&port configured while recording (of devtest portal).

    Thanks


    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 13.  RE: Recording option in Devtest portal

    Posted Jan 18, 2021 09:01 AM
    Hi Vaibhav

    My url is in this format

    https://stage.abc.com/

    if change this url to as mentioned below it is not accessible. Do i need to take help from environment if yes what details should i ask them?

    https://devtestportalhostname.devtestportalport/

    Thanks, Arun


  • 14.  RE: Recording option in Devtest portal

    Posted Jan 18, 2021 11:40 AM
    https://devtestportalhostname.devtestportalport/ 
    in this devtestportal hostname is the host name of your machine 
    devtestportalport is the port you used for recording, not 1507

    And Yes, you have to ensure the target host is accessible and port associated firewalls rules are relaxed. Also, ensure the ssl certs etc. are in place.

    Thanks

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------