Ashar086 commited on
Commit
95cc135
·
verified ·
1 Parent(s): c870b47

Update estimation.py

Browse files
Files changed (1) hide show
  1. estimation.py +16 -2
estimation.py CHANGED
@@ -1,6 +1,20 @@
 
1
 
2
  def estimate_testing_resources(url):
3
- manual_percentage = random.randint(50, 80)
4
- automation_percentage = 100 - manual_percentage
 
 
 
 
 
 
 
 
5
 
6
  return f"Estimated testing resources for {url}: {manual_percentage}% manual, {automation_percentage}% automation."
 
 
 
 
 
 
1
+ import random
2
 
3
  def estimate_testing_resources(url):
4
+ """
5
+ Estimate testing resources for the given URL with random percentages.
6
+ Args:
7
+ url (str): The URL for which to estimate testing resources.
8
+ Returns:
9
+ str: A string describing the estimated testing resources.
10
+ """
11
+ # Generate random percentages for manual and automation testing
12
+ manual_percentage = random.randint(50, 80) # Random percentage between 50% and 80%
13
+ automation_percentage = 100 - manual_percentage # The rest is automation
14
 
15
  return f"Estimated testing resources for {url}: {manual_percentage}% manual, {automation_percentage}% automation."
16
+
17
+ # Example usage
18
+ if __name__ == "__main__":
19
+ url = "http://example.com" # Replace with the actual URL
20
+ print(estimate_testing_resources(url))