Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,49 +1,37 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
st.
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
st.
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
if
|
| 25 |
-
st.write(
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
st.
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
st.write(efforts)
|
| 39 |
-
else:
|
| 40 |
-
st.error("Please enter a URL.")
|
| 41 |
-
|
| 42 |
-
# Perform tests and generate report
|
| 43 |
-
if st.button("Perform Tests and Generate Report"):
|
| 44 |
-
if url_input:
|
| 45 |
-
test_report = perform_all_tests(url_input)
|
| 46 |
-
st.write("**Test Report:**")
|
| 47 |
-
st.write(test_report)
|
| 48 |
-
else:
|
| 49 |
-
st.error("Please enter a URL.")
|
|
|
|
| 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
|
| 7 |
+
from sanity_check import perform_sanity_check
|
| 8 |
+
from performance_testing import perform_performance_test
|
| 9 |
+
|
| 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))
|
| 17 |
+
|
| 18 |
+
if st.button("Generate Automation Test Scripts"):
|
| 19 |
+
st.write(generate_automation_scripts(url))
|
| 20 |
+
|
| 21 |
+
if st.button("Test Critical Functionalities"):
|
| 22 |
+
st.write(test_critical_functionality(url))
|
| 23 |
+
|
| 24 |
+
if st.button("Run Regression Tests"):
|
| 25 |
+
st.write(run_regression_tests(url))
|
| 26 |
+
|
| 27 |
+
if st.button("Generate Test Report"):
|
| 28 |
+
st.write(generate_test_report(url))
|
| 29 |
+
|
| 30 |
+
if st.button("Perform Sanity Check"):
|
| 31 |
+
st.write(perform_sanity_check(url))
|
| 32 |
+
|
| 33 |
+
if st.button("Perform Performance Test"):
|
| 34 |
+
st.write(perform_performance_test(url))
|
| 35 |
+
|
| 36 |
+
if __name__ == "__main__":
|
| 37 |
+
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|