Data-Driven Testing with Testim: A Practical Demo
Вставка
- Опубліковано 1 лют 2025
- Testim - shorturl.at/kT245
What is data driven testing
How to use data driven testing in Testim
How to get data from Excel/CSV file
What is data driven testing
run the same test with different data
This is achieved in 2 steps
Parameterization - use variables in place of hard coded values
Get Data - during execution get data for the variables, can be from an excel, csv, text files or scripts
How to use data driven testing in Testim
Step 1 - Create a simple test
Step 2 - Decide on values that needs to be parameterized
Step 3 - In the test's Setup step (the first step), click the Show properties button
Step 4 - Click on Test Data
Step 5 - Define the data set in the JS editor
Step 6 - On the the step that you want to add the data set to Click the Show Properties button
Step 7 - In the Text to assign field, replace the existing text with the name of the parameter
Step 8 - Save and run test
Note - To run test multiple times, each time with a different Data Set, run your test from
Testim CLI, Scheduler or Local suite run
How to get data from Excel/CSV file
Step 1 - Create excel/csv file and add data as per parameters of the test
Step 2 - In the Setup step (the first step), click the Show properties button
Step 3 - Click on Test Data
Step 4 - Click Upload File and select the file you have created
Step 5 - The uploaded data is displayed. You can modify this data if needed
Step 6 - Save and Run test
#Testim #DataDrivenTesting #TestAutomation #Demo #TestingExamples #TestData #TestCoverage #softwaretesting
▬▬▬▬▬▬▬
Share with all who may need this
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
▬▬▬▬▬▬▬
Share with all who may need this
If my work has helped you, consider helping any animal near you, in any way you can
Never Stop Learning
Raghav Pal
▬▬▬▬ USEFUL LINKS ▬▬▬▬
✅ ALL TUTORIALS - AutomationStep...
✅ CI | CD | DEVOPS
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Jenkinsfile - bit.ly/3JSMSZ7
Kubernetes - bit.ly/2MJIlMK
Vagrant - bit.ly/3MVKdBt
Ansible - bit.ly/3MUsY3h
Terraform - bit.ly/4hMh3l6
✅ WEB TESTING
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium 4 - bit.ly/3AiJOlP
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
TestCafe - bit.ly/3O6eYmK
AccelQ - bit.ly/3PlsAsh
Cucumber BDD - bit.ly/3Cnno4z
Cypress - bit.ly/3PpEukM
Playwright - bit.ly/3iuPByJ
WebdriverIO - bit.ly/3IJyofA
XPath & Web Locators - bit.ly/3PpEvoQ
✅ API TESTING
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
Postman 2022 - bit.ly/3JWm4qX
Postman 2024 - bit.ly/3AE2wr6
Rest Assured - bit.ly/3zUdhRD
Karate API Testing - bit.ly/3w3H5Ku
General - bit.ly/2PYdwmV
JMeter API Testing - bit.ly/3AgVPar
Katalon Studio API Testing - bit.ly/2BwuCTN
API Mocking - bit.ly/3bYPsjS
✅ MOBILE TESTING
Appium - bit.ly/2ZHFSGX
Appium 2 - bit.ly/3UJujNJ
Mobile Playlist - bit.ly/2PxpeUv
✅ PERFORMANCE TESTING
JMeter Beginner - bit.ly/2oBbtIU
Gatling - bit.ly/3QrWfkV
Performance Testing - bit.ly/2wEXbLS
✅ SOURCE CODE MANAGEMENT
Git & GitHub - bit.ly/2Q1pagY
GITLAB - bit.ly/2kQPGyQ
✅ IDE
Eclipse - bit.ly/3AnRhQP
IntelliJ IDEA - bit.ly/3AnyDZ8
Visual Studio Code - bit.ly/2V15yvt
✅ PROGRAMMING
Java Beginners - bit.ly/2PVUcXs
Groovy - bit.ly/2FvWV5C
JavaScript - bit.ly/2KJDZ8o
TypeScript - bit.ly/3dvJBmz
Python - bit.ly/2Z4iRye
Ruby - bit.ly/3JRRmzf
✅ BUILD TOOLS
Maven - bit.ly/2NJdDRS
Gradle - bit.ly/30l3h1B
✅ CLOUD SERVICES
Browserstack - bit.ly/3w7kxZn
Saucelabs - bit.ly/3w7kAo1
LambdaTest - bit.ly/3C6TBwM
✅ PROJECT MANAGEMENT
Jira - bit.ly/3AFzE1L
✅ DATA FORMATS
JSON - bit.ly/3w450tq
XML - bit.ly/3PqRneH
✅ OTHERS
Virtualization on Windows - bit.ly/2SItIL9
Mock Interviews - bit.ly/3QGwwVJ
Redis - bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday - bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
🙌 Connect with Raghav:
Ask Raghav: bit.ly/2CoJGWf
GitHub: github.com/Rag...
Udemy: www.udemy.com/...
Stories: automationstep...
-
Thanks Raghav for this tutorial
I have one query that Testim stores data at cloud or local.
If I am using Testim then my website information and my test data will save on the Testim server ?
Sonal
when you use Testim, your website information and test data are stored on Testim's servers. However, you can control what data is shared with Testim by:
Using environment variables: You can store sensitive data, such as API keys or credentials, as environment variables, which are not stored on Testim's servers
Using external data sources: You can connect Testim to external data sources, such as databases or APIs, to retrieve data without storing it on Testim's servers
Configuring data masking: Testim provides data masking features that allow you to mask sensitive data, such as passwords or credit card numbers, before it's stored on their servers
-
Thanks for this information.
Hi is there no "Run" button to run test suite in Trial mode ? is it availale in community plan which is available after trial plan?? also can we attch personal device or emulator
Pratik
1. Trial Mode: No "Run" button for test suites in Trial mode; only individual tests can be run.
2. Community Plan: After the trial, the Community plan allows running suites
3. Personal Device/Emulator: Yes, you can attach personal devices/emulators for running tests using Testim's local execution feature.
-
@RaghavPal 3.this feature is also available after trial? Bcoz I'm not getting that option also I have downloaded mobile agent but it doesn't have flexibility like regular emulator I can't upload CSV file to emulator is there any way
can check the pricing features www.testim.io/pricing/
Sir please start creating video on Rspec basically cover each and everything Ruby and testing Ruby application using Rspec also writing test cases for Model and Controller please start it soon one playlist for this topic
Okay sure Nikesh
Hi Raghav this is Ahmad from Pakistan iam in QA field which language I should learn im confused
Ahmad
Do you want to learn in general or for some specific tool or platform.
@@RaghavPal for my internship and in I'm in professional field
Okay you can choose among Java, Python, JavaScript
Could you please help me to calculate think time and pacing for 80 users, 1000 TPH, 5 transactions in each iteration.
Just to confirm which tool are you using. You have commented this on Testim video.
@@RaghavPal Thank you for the response. I am using the Neoload tool. Run duration 1hr
ok, To calculate think time and pacing, we need to understand the relationship between the number of users, transactions per hour (TPH), and the number of transactions per iteration.
First, let's calculate the total number of transactions for the 1-hour test duration:
1000 TPH / 60 minutes = 16.67 transactions per minute
Since there are 5 transactions per iteration, the total number of iterations per minute is:
16.67 transactions per minute / 5 transactions per iteration = 3.33 iterations per minute
Now, let's calculate the pacing required to achieve the desired TPH:
Pacing (p) = 3600 seconds (1 hour) / (1000 TPH / 80 users)
p = 3600 / (1000 / 80)
p = 3600 / 12.5
p = 288 seconds
To account for 10% deviations, the pacing can be adjusted to:
p + 0.1p = 288 + 28.8 = 316.8 seconds
p - 0.1p = 288 - 28.8 = 259.2 seconds
Think time is derived from human behavior and can vary depending on the application and user activities. A common approach is to observe user behavior and estimate the think time accordingly.
For example, if the average think time is estimated to be 10 seconds, the total think time for 5 transactions would be:
10 seconds x 5 transactions = 50 seconds
You can adjust the think time and pacing values based on your specific testing requirements and user behavior.
Here is a summary of the calculations:
Total transactions per minute: 16.67
Total iterations per minute: 3.33
Pacing (p): 288 seconds
Adjusted pacing (p + 0.1p): 316.8 seconds
Adjusted pacing (p - 0.1p): 259.2 seconds
Think time per iteration: 50 seconds
-
@@RaghavPal ❤️❤️❤️ Thank you soooooooooo much... For a complete explanation.