Outstanding Raghav, I would have one friendly suggestion, by preparing one one video it would take time to get it finished completely. Rather than make one Udemy course from scratch. That would be really helpful.
Hi Raghav, I practised this and just finished .It was good to learn this new tool. I have below questions for this automation tool dnt we require any script language? 2. How powerful it is than selenium like currently lots of configuration, complex issues we face with selenium , Can we switch to this tool but i cans ee its free trial tool so would we need to buy this to automate our project? 3.How beneficial this tool in future as part of our learning. 4.What applications this can automate , all web applications? Thanks for all your hard work to bring new automation tools for us.
Great to know this Kavita Here are my answers: 1. Don't we require any script language? Ans: Testim is a low-code automation tool, so you don't need to know any script language to use it. However, you can use JavaScript code to write custom steps or to automate complex scenarios if needed 2. How powerful it is than selenium like currently lots of configuration, complex issues we face with selenium , Can we switch to this tool but i can see its free trial tool so would we need to buy this to automate our web applications? Ans: Testim is a more powerful tool than Selenium for automating web applications. It is easier to use, and it comes with a number of features that make it easier to automate complex scenarios. For example, Testim automatically heals tests when the underlying application changes, and it can automatically generate tests based on user flows. Testim is a paid tool, but it offers a free trial. You can use the free trial to evaluate Testim and to see if it is the right tool for your needs. 3. How beneficial this tool in future as part of our learning. Ans: Testim is a good tool to learn, as it is a popular tool in the industry. It is also a good tool to learn if you are new to test automation, as it is easy to use. 4. What applications this can automate , all web applications? Ans: Testim can automate all web applications, as well as mobile applications and Salesforce applications. We can also add API validation steps in our scenarios Overall, Testim is a powerful and easy-to-use tool for automating web applications. It is a good tool to learn, and it is a good choice for teams of all sizes. In the coming sessions, we will explore more on this Platform
Thanks for explain in detail so helping. My all projects are on Low Code No Code platform i think this would be so helpful to me.Please bring its full series and tons of thanks and gratitude for answering us like true universal mentor. do you ahve your email address where we can address our query last time i got stuck in dropdown issue, you given script but it did not help me you said to post it in some image sites but i could not do this due to unavailability of any such image sites. So that issue still i am facing is there any email of yours? in my known noone is so helpful noone shows curiousity to help in automation thats why i ask in details but thank you for your patience and responding us with honesty. Thanks again @@RaghavPal
Venkatesh They are different platforms used for automation testing Katalon Studio is known for its ease of use, while Testim offers robust automation capabilities with AI-based features. Consider your specific requirements and preferences when choosing between these two tools..
Hi Sir, I’m a manual tester with 10 years of experience. I got stuck in my career, as I’m very scared to learn coding. Is it possible now to switch to automation ??? Or is there any other testing tool without coding which l can continue my career ???
Geeta Yes, it is possible to switch to automation without knowing how to code. There are a number of codeless automation tools available, such as: * Katalon Studio * TestComplete * TestProject * UFT * Leapwork * Applitools These tools allow you to create and execute automated tests without writing any code. They typically use a visual interface to record and playback user actions. While codeless automation tools can be very useful, it is important to note that they have some limitations. For example, they may not be able to automate all types of tests, and they may not be as flexible as coded tests. If you are serious about switching to automation, I recommend that you at least learn the basics of coding. This will give you more flexibility and control over your automation tests. There are a number of resources available online and in libraries that can teach you how to code. Here are some tips for switching to automation: * Start by learning the basics of coding. There are a number of resources available online and in libraries that can teach you how to code. * Choose a codeless automation tool that is appropriate for your needs. There are a number of different codeless automation tools available, each with its own strengths and weaknesses. * Start by automating simple tests. Once you have mastered the basics, you can start to automate more complex tests. * Get involved in the automation community. There are a number of online and offline communities where you can learn from other automation testers. I hope this information is helpful. Please let me know if you have any other questions. I would also like to add that it is not too late to learn coding. There are many people who have learned to code later in life. With the right resources and dedication, you can learn to code and switch to automation.
Hi Raghav, great work on all of your tutorials, I do follow you for many of them, could you please do one for K6 performance testing as well. Great work mate, god bless.
Next, you can check the details, logs, screenshots etc to understand the cause of failure.. if it is a valid failure you can raise it in your bug tracking system.. else if you see something missing or incorrect in the test or env.. can fix and retry
When dealing with dynamic values, such as an OTP (One-Time Password), in your Testim automation tests, you can use custom validations and dynamic text input techniques. Let's explore how to handle dynamic values effectively: 1. Dynamic Text Input: - After recording a test that includes a "Set text" step (for entering text), you can edit the static text you typed during the recording and replace it with a dynamic string. - This dynamic string can contain a JavaScript expression and/or a parameter. 2. Custom Validations: - To add a custom validation step: - Hover over the arrow symbol where you want to add the validation. - Click on the "M" (Testim predefined steps). - The Predefined steps menu opens. - Click on "Validations." - The Validations menu expands. - You can then create custom validations using JavaScript code. For example, to validate an OTP: ```javascript // Example custom validation for OTP const otpValue = await page.innerText('#otpInput'); // Replace with your actual selector if (otpValue === '123456') { console.log('OTP validation passed.'); } else { console.error('OTP validation failed.'); } ``` 3. Parameterization: - Use parameters to handle dynamic values. Parameters allow you to pass values dynamically during test execution. - Define a parameter (e.g., `otpValue`) and set its value dynamically based on the OTP received during test execution. - Then use the parameter in your custom validation. 4. Random OTP Generation: - If you need to generate random OTPs for testing, you can use JavaScript to create a random numeric string: ```javascript function generateRandomOTP(length) { const characters = '0123456789'; let otp = ''; for (let i = 0; i < length; i++) { const randomIndex = Math.floor(Math.random() * characters.length); otp += characters.charAt(randomIndex); } return otp; } const randomOTP = generateRandomOTP(6); // Generate a 6-digit OTP console.log('Random OTP:', randomOTP); ``` 5. Using Dynamic Values in Tests: - Replace static values (e.g., hardcoded OTPs) with dynamic values (parameters or generated OTPs) in your test steps. - For example, instead of typing `'123456'`, use the dynamic value (parameter or generated OTP). Remember to adapt the examples above to your specific use case, including selecting the correct element for entering the OTP. By leveraging dynamic text input, custom validations, and parameterization, you can handle dynamic values effectively in your Testim tests ..
Hi raghav, I have completed bca and worked 4 yrs in non IT now i wanted to switch to IT by learning automation testing can i go for it? please suggest me... some skills ...thank you in advance 😊..
Meghana Yes, you can definitely switch to IT by learning automation testing. Automation testing is a growing field with a lot of demand for skilled testers. You have a good foundation with your BCA degree, and your work experience in a non-IT field will give you valuable transferable skills. Here are some skills that you should focus on learning: *Programming language:* Automation testing frameworks are typically written in programming languages such as Java, Python, or JavaScript. So, it is important to learn one of these languages. *Automation testing framework:* There are a number of different automation testing frameworks available, such as Selenium, Playwright, and Cypress. You should choose a framework and learn how to use it to write and execute test scripts. *Test case design:* Test cases are the instructions for your automation tests. You should learn how to design effective test cases that cover all aspects of the application being tested. *Test data management:* Test data is essential for automation testing. You should learn how to create and manage test data so that your tests are reliable and repeatable. *Reporting:* Automation testing frameworks typically generate reports that document the results of your tests. You should learn how to generate and interpret these reports. In addition to these technical skills, it is also important to develop your soft skills, such as communication, problem-solving, and teamwork. These skills will be essential for success in your career as an automation tester. Here are some resources that you can use to learn automation testing: *Online courses:* There are a number of online courses available that teach automation testing. These courses can be a great way to learn the basics of automation testing and get started with writing your own test scripts. *Tutorials:* There are also a number of tutorials available online that teach specific aspects of automation testing, such as how to use a particular automation testing framework or how to design effective test cases. *Community forums:* There are a number of community forums where automation testers can ask questions and share knowledge. These forums can be a great resource for getting help and support as you learn automation testing. I encourage you to start learning automation testing today. There are many resources available to help you get started, and the field is growing rapidly. With the right skills and experience, you can have a successful career as an automation tester.
Pradeepreddy To perform performance testing for RDP, you need to use a tool that can simulate multiple users connecting to an RDP server and performing various tasks. Some popular tools that support RDP performance testing include: * **LoadRunner** * **NeoLoad** * **Apache JMeter** * **TestComplete** * **Loadster** These tools allow you to create scripts that simulate user activity on an RDP server. You can then use these scripts to generate load on the server and measure its performance. Here are some steps on how to perform performance testing for RDP using LoadRunner: 1. Create a LoadRunner scenario that simulates user activity on the RDP server. This could include opening applications, navigating menus, and performing various tasks. 2. Configure the LoadRunner scenario to generate load on the RDP server. This could involve specifying the number of users, the duration of the test, and the type of load to generate. 3. Run the LoadRunner scenario and collect performance data. This data could include response times, throughput, and resource utilization. 4. Analyze the performance data to identify any bottlenecks or areas for improvement. You can use the same general approach to perform performance testing for RDP using any of the other tools listed above. Here are some specific recommendations for performance testing RDP applications: * Test different types of RDP connections, such as full screen, windowed, and remote audio. * Test different RDP protocols, such as RDP 8.0 and RDP 7.0. * Test different RDP applications, such as Microsoft Office, Adobe Creative Suite, and SAP. * Test different workloads, such as web browsing, email, and video conferencing. * Test different user scenarios, such as single users, multiple users, and concurrent users. By following these recommendations, you can ensure that your RDP applications are able to handle the expected load and provide a good user experience.
Hi Raghav, Suppose if I have field which won’t accept duplicates..eg name can’t be duplicate ..how to handle this when record and play back ? When we play back it will enter the same input which we have given while recording right ..
Jayanth When automating testing of web applications with Testim, handling fields that do not accept duplicates, such as the "name" field, requires generating unique values during playback. Here's a step-by-step approach: 1. **Capture Unique Values During Recording:** While recording the test, capture the unique values that are entered into the field. For instance, if you enter "John Doe" for the first record, store this value in a variable. For the second record, capture the unique value, say "Jane Doe," and store it in another variable. 2. **Generate Unique Values During Playback:** During playback, instead of using the recorded values directly, generate unique values based on the captured ones. For example, you can append a unique identifier or timestamp to the recorded values. This ensures that the playback does not enter duplicate values into the field. 3. **Update Test Steps:** Modify the test steps to utilize the unique value generation logic. Replace the recorded values with the generated unique values to ensure that the playback uses distinct values for each iteration. 4. **Verify Uniqueness:** Incorporate verification steps into the test to ensure that the entered values are indeed unique. You can check if the value is not present in a list of previously entered values or use database queries to verify uniqueness. Here's an example code snippet illustrating the unique value generation process: ```javascript // Record unique values during test execution let recordedValues = []; // Playback and generate unique values for (let i = 0; i < recordedValues.length; i++) { // Generate a unique value based on the recorded value let uniqueValue = recordedValues[i] + '_' + i; // Enter the unique value into the field element.typeText(uniqueValue); } ``` By following these steps, you can effectively handle fields that do not accept duplicates in Testim automation tests, ensuring that each record contains unique data.
Thanks for the Video @Raghav, it is very helpful. But when you record the app, it is working for you... but it is not recording the application, when I trying to record the app.
How to run a test case with multiple test data. Like in a master page if there are 2 fields name and dob and i need to fill 10 sets of this data...hiw can i do this. I mean, how to run same stepswith multiple set of test data like for loop.
Sonal To run a test case with multiple sets of data in Testim, you can use data-driven testing. Here are the steps: 1. Define Test Data: - You can define test data in three ways: - Visual Editor (UI): Add test data through the "Test Data" property in the Setup step. Define multiple ordered data sets using JavaScript objects. - Config File: Create a common JavaScript configuration file containing parameters for your tests. Use hooks (e.g., `beforeSuite`) to add test data to the entire execution or specific tests. This option offers extensive control over data scope. - Params File: Use a JSON file with parameters and their values. This provides execution-level scope. 2. Run Tests Locally: - In Testim, you can run multiple tests locally: - Go to Test List > Tests. - Select two or more tests from the Test Library (hold down CTRL/CMD key while clicking). - Right-click on the selected tests and choose Play from the context menu or click the Play icon in the actions menu⁵. 3. Data-Driven Testing Use Cases: - Run a signup test with different data (e.g., usernames and passwords). - Read/inject data from a database and pass it to your test. Remember to adjust your test steps to use the defined test data, and Testim will execute the test against each data set separately --
Hi raghav could you share any information on rest service automation using spring boot framework?there is unit testing related information available but not automation related . Thanks in advance
Outstanding Raghav,
I would have one friendly suggestion, by preparing one one video it would take time to get it finished completely.
Rather than make one Udemy course from scratch.
That would be really helpful.
Sure, I will check on this Pritesh.. thanks for the feedback
Hi Raghav,
I practised this and just finished .It was good to learn this new tool.
I have below questions for this automation tool dnt we require any script language?
2. How powerful it is than selenium like currently lots of configuration, complex issues we face with selenium , Can we switch to this tool but i cans ee its free trial tool so would we need to buy this to automate our project?
3.How beneficial this tool in future as part of our learning.
4.What applications this can automate , all web applications?
Thanks for all your hard work to bring new automation tools for us.
Great to know this Kavita
Here are my answers:
1. Don't we require any script language?
Ans: Testim is a low-code automation tool, so you don't need to know any script language to use it. However, you can use JavaScript code to write custom steps or to automate complex scenarios if needed
2. How powerful it is than selenium like currently lots of configuration, complex issues we face with selenium , Can we switch to this tool but i can see its free trial tool so would we need to buy this to automate our web applications?
Ans: Testim is a more powerful tool than Selenium for automating web applications. It is easier to use, and it comes with a number of features that make it easier to automate complex scenarios. For example, Testim automatically heals tests when the underlying application changes, and it can automatically generate tests based on user flows.
Testim is a paid tool, but it offers a free trial. You can use the free trial to evaluate Testim and to see if it is the right tool for your needs.
3. How beneficial this tool in future as part of our learning.
Ans: Testim is a good tool to learn, as it is a popular tool in the industry. It is also a good tool to learn if you are new to test automation, as it is easy to use.
4. What applications this can automate , all web applications?
Ans: Testim can automate all web applications, as well as mobile applications and Salesforce applications. We can also add API validation steps in our scenarios
Overall, Testim is a powerful and easy-to-use tool for automating web applications. It is a good tool to learn, and it is a good choice for teams of all sizes.
In the coming sessions, we will explore more on this Platform
Thanks for explain in detail so helping. My all projects are on Low Code No Code platform i think this would be so helpful to me.Please bring its full series and tons of thanks and gratitude for answering us like true universal mentor.
do you ahve your email address where we can address our query last time i got stuck in dropdown issue, you given script but it did not help me you said to post it in some image sites but i could not do this due to unavailability of any such image sites. So that issue still i am facing is there any email of yours? in my known noone is so helpful noone shows curiousity to help in automation thats why i ask in details but thank you for your patience and responding us with honesty. Thanks again @@RaghavPal
Sure Kavita
You can let me know your queries here
In upcoming days AI will softly provide recession for both Automation and Manual Testers 😂😂😂 . Ragav bro this content is mind-blowing 😲❤️
Thanks for watching Rajasekar
Hats off Raghav, Much Appreciated 🙏🏻
Just one thing do we have plan to create more videos on Testim?
Yes, soon Pritesh
Thanks a lot Raghav sir, your explanation is very easy to understand i really like watching all the videos of yours. Thanks
You're most welcome Rahul
Hi Raghav that was great video.What's the difference between Katalon and Testim ?.
Venkatesh
They are different platforms used for automation testing
Katalon Studio is known for its ease of use, while Testim offers robust automation capabilities with AI-based features. Consider your specific requirements and preferences when choosing between these two tools..
@@RaghavPal Thanks Raghav for responding got it now👍
Hi Sir,
I’m a manual tester with 10 years of experience. I got stuck in my career, as I’m very scared to learn coding. Is it possible now to switch to automation ??? Or is there any other testing tool without coding which l can continue my career ???
Geeta
Yes, it is possible to switch to automation without knowing how to code. There are a number of codeless automation tools available, such as:
* Katalon Studio
* TestComplete
* TestProject
* UFT
* Leapwork
* Applitools
These tools allow you to create and execute automated tests without writing any code. They typically use a visual interface to record and playback user actions.
While codeless automation tools can be very useful, it is important to note that they have some limitations. For example, they may not be able to automate all types of tests, and they may not be as flexible as coded tests.
If you are serious about switching to automation, I recommend that you at least learn the basics of coding. This will give you more flexibility and control over your automation tests. There are a number of resources available online and in libraries that can teach you how to code.
Here are some tips for switching to automation:
* Start by learning the basics of coding. There are a number of resources available online and in libraries that can teach you how to code.
* Choose a codeless automation tool that is appropriate for your needs. There are a number of different codeless automation tools available, each with its own strengths and weaknesses.
* Start by automating simple tests. Once you have mastered the basics, you can start to automate more complex tests.
* Get involved in the automation community. There are a number of online and offline communities where you can learn from other automation testers.
I hope this information is helpful. Please let me know if you have any other questions.
I would also like to add that it is not too late to learn coding. There are many people who have learned to code later in life. With the right resources and dedication, you can learn to code and switch to automation.
Hi Raghav, great work on all of your tutorials, I do follow you for many of them, could you please do one for K6 performance testing as well.
Great work mate, god bless.
Noted Suraj, will plan on this
Hi raghav,
What is next step while we get the tag test failure while running in local
Next, you can check the details, logs, screenshots etc to understand the cause of failure.. if it is a valid failure you can raise it in your bug tracking system.. else if you see something missing or incorrect in the test or env.. can fix and retry
Nice video Raghav! Question, how do you add validation if the value is dynamic? Say an OTP we need to enter? Thank you!
When dealing with dynamic values, such as an OTP (One-Time Password), in your Testim automation tests, you can use custom validations and dynamic text input techniques. Let's explore how to handle dynamic values effectively:
1. Dynamic Text Input:
- After recording a test that includes a "Set text" step (for entering text), you can edit the static text you typed during the recording and replace it with a dynamic string.
- This dynamic string can contain a JavaScript expression and/or a parameter.
2. Custom Validations:
- To add a custom validation step:
- Hover over the arrow symbol where you want to add the validation.
- Click on the "M" (Testim predefined steps).
- The Predefined steps menu opens.
- Click on "Validations."
- The Validations menu expands.
- You can then create custom validations using JavaScript code. For example, to validate an OTP:
```javascript
// Example custom validation for OTP
const otpValue = await page.innerText('#otpInput'); // Replace with your actual selector
if (otpValue === '123456') {
console.log('OTP validation passed.');
} else {
console.error('OTP validation failed.');
}
```
3. Parameterization:
- Use parameters to handle dynamic values. Parameters allow you to pass values dynamically during test execution.
- Define a parameter (e.g., `otpValue`) and set its value dynamically based on the OTP received during test execution.
- Then use the parameter in your custom validation.
4. Random OTP Generation:
- If you need to generate random OTPs for testing, you can use JavaScript to create a random numeric string:
```javascript
function generateRandomOTP(length) {
const characters = '0123456789';
let otp = '';
for (let i = 0; i < length; i++) {
const randomIndex = Math.floor(Math.random() * characters.length);
otp += characters.charAt(randomIndex);
}
return otp;
}
const randomOTP = generateRandomOTP(6); // Generate a 6-digit OTP
console.log('Random OTP:', randomOTP);
```
5. Using Dynamic Values in Tests:
- Replace static values (e.g., hardcoded OTPs) with dynamic values (parameters or generated OTPs) in your test steps.
- For example, instead of typing `'123456'`, use the dynamic value (parameter or generated OTP).
Remember to adapt the examples above to your specific use case, including selecting the correct element for entering the OTP. By leveraging dynamic text input, custom validations, and parameterization, you can handle dynamic values effectively in your Testim tests
..
@@RaghavPal Thank you very much for the detailed explanation! 🙇♀
Great job as always , can you make a video how tests can be managed , test suit, Different projects … etc
Sure, I will do Gulnaz
Hi raghav, I have completed bca and worked 4 yrs in non IT now i wanted to switch to IT by learning automation testing can i go for it? please suggest me... some skills ...thank you in advance 😊..
Meghana
Yes, you can definitely switch to IT by learning automation testing. Automation testing is a growing field with a lot of demand for skilled testers. You have a good foundation with your BCA degree, and your work experience in a non-IT field will give you valuable transferable skills.
Here are some skills that you should focus on learning:
*Programming language:* Automation testing frameworks are typically written in programming languages such as Java, Python, or JavaScript. So, it is important to learn one of these languages.
*Automation testing framework:* There are a number of different automation testing frameworks available, such as Selenium, Playwright, and Cypress. You should choose a framework and learn how to use it to write and execute test scripts.
*Test case design:* Test cases are the instructions for your automation tests. You should learn how to design effective test cases that cover all aspects of the application being tested.
*Test data management:* Test data is essential for automation testing. You should learn how to create and manage test data so that your tests are reliable and repeatable.
*Reporting:* Automation testing frameworks typically generate reports that document the results of your tests. You should learn how to generate and interpret these reports.
In addition to these technical skills, it is also important to develop your soft skills, such as communication, problem-solving, and teamwork. These skills will be essential for success in your career as an automation tester.
Here are some resources that you can use to learn automation testing:
*Online courses:* There are a number of online courses available that teach automation testing. These courses can be a great way to learn the basics of automation testing and get started with writing your own test scripts.
*Tutorials:* There are also a number of tutorials available online that teach specific aspects of automation testing, such as how to use a particular automation testing framework or how to design effective test cases.
*Community forums:* There are a number of community forums where automation testers can ask questions and share knowledge. These forums can be a great resource for getting help and support as you learn automation testing.
I encourage you to start learning automation testing today. There are many resources available to help you get started, and the field is growing rapidly. With the right skills and experience, you can have a successful career as an automation tester.
Thanks raghav, you're the best😊
ok, will check on this
Thanks. That was a great video. We should adapt to the fast developments in AI, and this video helps a lot.
Glad it was helpful!
Hi Raghav, using testim you have done only actions on the page. Can we do the validations (text validation, url validation etc.,) using testim?
Yes, can check here - help.testim.io/docs/validations
Hi Raghav, I don't see a part 2 for this course and there's a part 3. was it an naming error or is it missing?
Shiva
check here ua-cam.com/play/PLhW3qG5bs-L-Fgaw6V6uRVL-oyv0dUSCm.html
@@RaghavPal Thank you so much
Hello Raghav, When next tutorial will be come of this software automation ?any update on it?Thanks
I am working on the next lecture, will add soon Kavita
Hi ragav, how do performance testing for RDP..... application contains RDP connection which tool support.... could you please suggest me
How record RDP application?
Pradeepreddy
To perform performance testing for RDP, you need to use a tool that can simulate multiple users connecting to an RDP server and performing various tasks. Some popular tools that support RDP performance testing include:
* **LoadRunner**
* **NeoLoad**
* **Apache JMeter**
* **TestComplete**
* **Loadster**
These tools allow you to create scripts that simulate user activity on an RDP server. You can then use these scripts to generate load on the server and measure its performance.
Here are some steps on how to perform performance testing for RDP using LoadRunner:
1. Create a LoadRunner scenario that simulates user activity on the RDP server. This could include opening applications, navigating menus, and performing various tasks.
2. Configure the LoadRunner scenario to generate load on the RDP server. This could involve specifying the number of users, the duration of the test, and the type of load to generate.
3. Run the LoadRunner scenario and collect performance data. This data could include response times, throughput, and resource utilization.
4. Analyze the performance data to identify any bottlenecks or areas for improvement.
You can use the same general approach to perform performance testing for RDP using any of the other tools listed above.
Here are some specific recommendations for performance testing RDP applications:
* Test different types of RDP connections, such as full screen, windowed, and remote audio.
* Test different RDP protocols, such as RDP 8.0 and RDP 7.0.
* Test different RDP applications, such as Microsoft Office, Adobe Creative Suite, and SAP.
* Test different workloads, such as web browsing, email, and video conferencing.
* Test different user scenarios, such as single users, multiple users, and concurrent users.
By following these recommendations, you can ensure that your RDP applications are able to handle the expected load and provide a good user experience.
Hi Raghav,
Suppose if I have field which won’t accept duplicates..eg name can’t be duplicate ..how to handle this when record and play back ? When we play back it will enter the same input which we have given while recording right ..
Jayanth
When automating testing of web applications with Testim, handling fields that do not accept duplicates, such as the "name" field, requires generating unique values during playback. Here's a step-by-step approach:
1. **Capture Unique Values During Recording:**
While recording the test, capture the unique values that are entered into the field. For instance, if you enter "John Doe" for the first record, store this value in a variable. For the second record, capture the unique value, say "Jane Doe," and store it in another variable.
2. **Generate Unique Values During Playback:**
During playback, instead of using the recorded values directly, generate unique values based on the captured ones. For example, you can append a unique identifier or timestamp to the recorded values. This ensures that the playback does not enter duplicate values into the field.
3. **Update Test Steps:**
Modify the test steps to utilize the unique value generation logic. Replace the recorded values with the generated unique values to ensure that the playback uses distinct values for each iteration.
4. **Verify Uniqueness:**
Incorporate verification steps into the test to ensure that the entered values are indeed unique. You can check if the value is not present in a list of previously entered values or use database queries to verify uniqueness.
Here's an example code snippet illustrating the unique value generation process:
```javascript
// Record unique values during test execution
let recordedValues = [];
// Playback and generate unique values
for (let i = 0; i < recordedValues.length; i++) {
// Generate a unique value based on the recorded value
let uniqueValue = recordedValues[i] + '_' + i;
// Enter the unique value into the field
element.typeText(uniqueValue);
}
```
By following these steps, you can effectively handle fields that do not accept duplicates in Testim automation tests, ensuring that each record contains unique data.
@@RaghavPal thank you so much for detailed reply ..
Hello Sir,
Is this licensed.
Yes Roshn
Thanks for the Video @Raghav, it is very helpful. But when you record the app, it is working for you... but it is not recording the application, when I trying to record the app.
Ravi
cannot say much without checking the steps, your process and logs. May be you can try with diff application and version
@@RaghavPal I watched 3rd video followed the steps, it is working now. Thanks for the reply.
How to run a test case with multiple test data.
Like in a master page if there are 2 fields name and dob and i need to fill 10 sets of this data...hiw can i do this.
I mean, how to run same stepswith multiple set of test data like for loop.
Sonal
To run a test case with multiple sets of data in Testim, you can use data-driven testing. Here are the steps:
1. Define Test Data:
- You can define test data in three ways:
- Visual Editor (UI): Add test data through the "Test Data" property in the Setup step. Define multiple ordered data sets using JavaScript objects.
- Config File: Create a common JavaScript configuration file containing parameters for your tests. Use hooks (e.g., `beforeSuite`) to add test data to the entire execution or specific tests. This option offers extensive control over data scope.
- Params File: Use a JSON file with parameters and their values. This provides execution-level scope.
2. Run Tests Locally:
- In Testim, you can run multiple tests locally:
- Go to Test List > Tests.
- Select two or more tests from the Test Library (hold down CTRL/CMD key while clicking).
- Right-click on the selected tests and choose Play from the context menu or click the Play icon in the actions menu⁵.
3. Data-Driven Testing Use Cases:
- Run a signup test with different data (e.g., usernames and passwords).
- Read/inject data from a database and pass it to your test.
Remember to adjust your test steps to use the defined test data, and Testim will execute the test against each data set separately
--
Hi Sir ,
Till when this series will be finished
Shreyansh
I am working on it. Next video should get published by this or next week. Should complete it in few weeks
Hi raghav could you share any information on rest service automation using spring boot framework?there is unit testing related information available but not automation related .
Thanks in advance
Will try
Thanks, please provide the Automation related videos also
Sure
Thanks for bringing new information bro
Always welcome Divakar
Thanks a lot - Much appreciated🙏
You're most welcome Dayakar
I its open source platform tools?
No, its commercial
Raghav where is remaining sessions about testim😢
I will plan soon
Update for next lecture please
working on that
@@RaghavPal thank you!
How to get work email for free
Can try some online email services
@@RaghavPal hi can you please share me any link
Appreciate your hard work and knowledge sharing, Thank you very much.
So nice of you