Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from estimation import estimate_testing_resources
|
| 3 |
-
from automation import
|
| 4 |
from critical_functionality import test_critical_functionality
|
| 5 |
from regression_testing import run_regression_tests
|
| 6 |
from test_report import generate_test_report
|
|
@@ -10,12 +10,7 @@ from performance_testing import perform_performance_test
|
|
| 10 |
def main():
|
| 11 |
st.title("Automated Testing Tool")
|
| 12 |
|
| 13 |
-
|
| 14 |
-
if url:
|
| 15 |
-
snippet = generate_automation_test_snippet(url)
|
| 16 |
-
st.code(snippet, language='python')
|
| 17 |
-
else:
|
| 18 |
-
st.error("Please enter a valid URL.")
|
| 19 |
|
| 20 |
if st.button("Estimate Testing Resources"):
|
| 21 |
st.write(estimate_testing_resources(url))
|
|
@@ -39,4 +34,4 @@ def main():
|
|
| 39 |
st.write(perform_performance_test(url))
|
| 40 |
|
| 41 |
if __name__ == "__main__":
|
| 42 |
-
main()
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from estimation import estimate_testing_resources
|
| 3 |
+
from automation import generate_automation_scripts
|
| 4 |
from critical_functionality import test_critical_functionality
|
| 5 |
from regression_testing import run_regression_tests
|
| 6 |
from test_report import generate_test_report
|
|
|
|
| 10 |
def main():
|
| 11 |
st.title("Automated Testing Tool")
|
| 12 |
|
| 13 |
+
url = st.text_input("Enter the URL to be tested")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
if st.button("Estimate Testing Resources"):
|
| 16 |
st.write(estimate_testing_resources(url))
|
|
|
|
| 34 |
st.write(perform_performance_test(url))
|
| 35 |
|
| 36 |
if __name__ == "__main__":
|
| 37 |
+
main()
|