Thank you for the video Raghav.I am trying to test a scenario where I need to validate certain parameters for a few telecom services (data speeds). A part of the xml request is below: ServiceName>{{ServiceName}}
Hi Dhananjay, es, you can achieve this in Postman by using Collection Variables and the Collection Runner. Here's a high-level overview of the steps: Create a Collection Variables in Postman with the name of your choice, for example, ServiceName. In your requests, use the syntax {{ServiceName}} where you want the value of the variable to be inserted. In the Collection Runner, select the collection you want to run, and import the CSV file that contains the data speeds. Map the CSV column ServiceName to the Collection Variable ServiceName. Start the Collection Runner. Each iteration of the Collection Runner will set the value of ServiceName to the corresponding value in the CSV file and then run the tests. You can then use this value in your requests and assertions to validate the corresponding telecom services.
Hi Sharath Here are some ways to handle exceptions in Postman: * **Use the `catch` block:** The `catch` block is a way to handle exceptions in JavaScript. You can use the `catch` block to catch any exceptions that are thrown by your code and then take some action, such as logging the exception or displaying an error message. ``` try { // Your code } catch (error) { // Handle the exception } ``` * **Use the `on` event:** The `on` event is a way to handle events in Postman. You can use the `on` event to handle exceptions that are thrown by your code. ``` pm.on("error", function(error) { // Handle the exception }); ``` * **Use the `test` script:** The `test` script is a way to run code after a request has been made. You can use the `test` script to check for errors and then take some action, such as logging the error or displaying an error message. ``` pm.test("Check for errors", function() { if (pm.response.error) { // Handle the error } }); ``` Here are some additional tips for handling exceptions in Postman: * Use the `debug` option to log exceptions to the console. This can help you to track down the source of the exception. * Use the `fail` function to fail the request if an exception is thrown. This can help you to ensure that your tests are not successful if there are any errors. * Use the `retry` function to retry the request if an exception is thrown. This can help you to ensure that your tests are successful even if there are occasional errors. I hope this helps
Hi Mike, Yes, Postman has the ability to report or email the API execution status automatically. This can be done through the use of Postman monitors, which allow you to run API requests on a set schedule and receive notifications if the API response changes. To set up a monitor, you first need to create a collection of API requests that you want to monitor. Then, go to the "Monitor" tab in Postman and click "Create a monitor." In the monitor setup, you can specify the frequency of the monitor run, the environment to use, and the recipients of the monitor email notifications. By default, Postman sends an email to the recipients whenever there is a change in the API response. However, you can customize the email notifications by adding custom fields such as the API response time or status code. Additionally, Postman offers a feature called "Postman Pro," which provides advanced reporting and collaboration features, including the ability to generate API reports and share them with team members. In conclusion, Postman does have the ability to report or email the API execution status automatically through the use of monitors and advanced reporting features in Postman Pro
Ammar There are several options Select More tools > Developer tools. Keyboard Shortcut: F12 Right-click anywhere on the webpage and select Inspect or Inspect element. This will open the developer tools with the specific element you clicked on highlighted. Press Ctrl + Shift + P (Windows/Linux) or Command + Option + P (macOS) to open the Command Menu. Type in "Show Developer Tools" and select the option.
Best training teacher. I am learning most of the tools from your channel. Thanks a ton Raghav🙏 Keep up the good work!
Glad to hear that.. humbled
Thank you, very informative and no time-wasting.
Most welcome
Excellent. Best tutorial ever.
Glad it was helpful!
Thank you for the video Raghav.I am trying to test a scenario where I need to validate certain parameters for a few telecom services (data speeds). A part of the xml request is below:
ServiceName>{{ServiceName}}
Hi Dhananjay,
es, you can achieve this in Postman by using Collection Variables and the Collection Runner. Here's a high-level overview of the steps:
Create a Collection Variables in Postman with the name of your choice, for example, ServiceName.
In your requests, use the syntax {{ServiceName}} where you want the value of the variable to be inserted.
In the Collection Runner, select the collection you want to run, and import the CSV file that contains the data speeds.
Map the CSV column ServiceName to the Collection Variable ServiceName.
Start the Collection Runner.
Each iteration of the Collection Runner will set the value of ServiceName to the corresponding value in the CSV file and then run the tests. You can then use this value in your requests and assertions to validate the corresponding telecom services.
Man loved your content and its information. got to know many new things.
just curious which tool did you use to provide highlight like rectangle.
Glad you liked it Lakshmi
Hi Ragav,
Thanks for posting such a useful content you are awesome!
Are we left with few more concepts like jenkins..etc?
Hi Sudarshan, you can find all playlists here - automationstepbystep.com/
Hello sir
Where will I get ur mannual notes? Yesterday u posted acceptance resting, it is in very easy language. So please tell me.
Hi Ashwini, I add all the notes below the video, in Description, Tell me in specific what is missing
Hi Sir,
How to handle exceptions in postman. Could you please provide info on this.
Hi Sharath
Here are some ways to handle exceptions in Postman:
* **Use the `catch` block:** The `catch` block is a way to handle exceptions in JavaScript. You can use the `catch` block to catch any exceptions that are thrown by your code and then take some action, such as logging the exception or displaying an error message.
```
try {
// Your code
} catch (error) {
// Handle the exception
}
```
* **Use the `on` event:** The `on` event is a way to handle events in Postman. You can use the `on` event to handle exceptions that are thrown by your code.
```
pm.on("error", function(error) {
// Handle the exception
});
```
* **Use the `test` script:** The `test` script is a way to run code after a request has been made. You can use the `test` script to check for errors and then take some action, such as logging the error or displaying an error message.
```
pm.test("Check for errors", function() {
if (pm.response.error) {
// Handle the error
}
});
```
Here are some additional tips for handling exceptions in Postman:
* Use the `debug` option to log exceptions to the console. This can help you to track down the source of the exception.
* Use the `fail` function to fail the request if an exception is thrown. This can help you to ensure that your tests are not successful if there are any errors.
* Use the `retry` function to retry the request if an exception is thrown. This can help you to ensure that your tests are successful even if there are occasional errors.
I hope this helps
Hi once again. Does Postman have a function to report or email the API execution status automatically?
Hi Mike,
Yes, Postman has the ability to report or email the API execution status automatically. This can be done through the use of Postman monitors, which allow you to run API requests on a set schedule and receive notifications if the API response changes.
To set up a monitor, you first need to create a collection of API requests that you want to monitor. Then, go to the "Monitor" tab in Postman and click "Create a monitor." In the monitor setup, you can specify the frequency of the monitor run, the environment to use, and the recipients of the monitor email notifications.
By default, Postman sends an email to the recipients whenever there is a change in the API response. However, you can customize the email notifications by adding custom fields such as the API response time or status code.
Additionally, Postman offers a feature called "Postman Pro," which provides advanced reporting and collaboration features, including the ability to generate API reports and share them with team members.
In conclusion, Postman does have the ability to report or email the API execution status automatically through the use of monitors and advanced reporting features in Postman Pro
@@RaghavPal Thank you for your recommendations. I will check out your suggestions.
How to use the developer tool in Edge
Ammar
There are several options
Select More tools > Developer tools.
Keyboard Shortcut: F12
Right-click anywhere on the webpage and select Inspect or Inspect element. This will open the developer tools with the specific element you clicked on highlighted.
Press Ctrl + Shift + P (Windows/Linux) or Command + Option + P (macOS) to open the Command Menu.
Type in "Show Developer Tools" and select the option.
Please explain in details
Sure Syed will create new sessions
i am doing in postman tool which was downloaded and my laptop is also windows. So please tell me how to debug in postman app
Hi Harish, the steps will remain same for this, Pls try and let me know if you face issue, in detail
Already I tried that's why I comment it
I will check
Thanks sir.
Most welcome
I need a video of jason web token authentication with postman
ok.. i will plan.. for now can try online
Hello sir i need ur help in postman for providing authorise permission to my tool
tell me the issue Rajat
@@RaghavPal can i send u an e-mail for more clarification
@@RaghavPal i send u an email ✉️ please chk and reply to me
Are you reuploading postman vids
Yes, with the latest version as there were some UI changes
@@RaghavPal a friend recommended your videos havr completed all postman vids, can not thank enough.. keep up the good work