How to use elapsed_time method in unittest-xml-reporting

Best Python code snippet using unittest-xml-reporting_python

ProFinal.py

Source:ProFinal.py Github

copy

Full Screen

1#!/usr/bin/python32import time3#Llamamos al tipo de Operacion4def tipoOperacion():5 correcto = False6 num = 07 while (not correcto):8 try:9 num = int(input("ESCOJA UNA OPCION: "))10 print(" ")11 correcto = True12 except ValueError:13 print('Error, introduce un numero e2ntero')14 return num15salir = False16opcion = 017#LLamamos a la Opcion con el numero de valores a Operar18def numeroValores():19 bien = False20 n = 021 while (not bien):22 try:23 n = int(input("ESCOJA UN NUMERO DE VALORES"))24 print(" ")25 bien = True26 except ValueError:27 print('Error, introduce un numero entero')28 return n29sal = False30op = 031#Ordenamiento Por seleccion32def ordenamiento_Seleccion(lista, tam):33 print("Arreglo Desordenado")34 print(lista)35 for i in range(0, tam - 1):36 min = i 37 for j in range(i + 1, tam):38 if lista[min] > lista[j]:39 min = j40 aux = lista[min]41 lista[min] = lista[i]42 lista[i] = aux43 print ("Arreglo Ordenado")44 print lista45#Ordenamiento Por Combinacion46def ordenamiento_Combinacion(Lista):47 print("Dividir ",Lista)48 if len(Lista)>1:49 mitad = len(Lista)/250 mitadIzquierda = Lista[:mitad]51 mitadDerecha = Lista[mitad:]52 ordenamiento_Combinacion(mitadIzquierda)53 ordenamiento_Combinacion(mitadDerecha)54 i=055 j=056 k=057 while i < len(mitadIzquierda) and j < len(mitadDerecha):58 if mitadIzquierda[i] < mitadDerecha[j]:59 Lista[k]=mitadIzquierda[i]60 i=i+161 else:62 Lista[k]=mitadDerecha[j]63 j=j+164 k=k+165 while i < len(mitadIzquierda):66 Lista[k]=mitadIzquierda[i]67 i=i+168 k=k+169 while j < len(mitadDerecha):70 Lista[k]=mitadDerecha[j]71 j=j+172 k=k+173 print("Mezclar ",Lista)74#Ordenamiento Por Ircecion75def ordenamiento_insercion(lista):76 print("Lista Desordenanda")77 for i in xrange(len(lista) - 1):78 if lista[i + 1] < lista[i]:79 reubicar(lista, i + 1)80 print "Despuesde Pasada :", i, ">", lista81 print("Arreglo Ordenado")82 print(lista)83def reubicar(lista, p):84 v = lista[p]85 j = p86 while j > 0 and v < lista[j - 1]:87 lista[j] = lista[j - 1]88 j -= 189 lista[j] = v90#Leer Lista91def leeLista(op):92 if op ==1:93 archivo = open("100.txt", "r")94 contenido = archivo.readlines()95 lista_data = [int(r) for r in contenido]96 return lista_data97 elif op == 2:98 archivo = open("1000.txt", "r")99 contenido = archivo.readlines()100 lista_data = [int(r) for r in contenido]101 return lista_data102 elif op == 3:103 archivo = open("5000.txt", "r")104 contenido = archivo.readlines()105 lista_data = [int(r) for r in contenido]106 return lista_data107 elif op == 4:108 archivo = open("10000.txt", "r")109 contenido = archivo.readlines()110 lista_data = [int(r) for r in contenido]111 return lista_data112 elif op == 5:113 archivo = open("50000.txt", "r")114 contenido = archivo.readlines()115 lista_data = [int(r) for r in contenido]116 return lista_data117 elif op == 6:118 archivo = open("100000.txt", "r")119 contenido = archivo.readlines()120 lista_data = [int(r) for r in contenido]121 return lista_data122 elif op == 7:123 archivo = open("500000.txt", "r")124 contenido = archivo.readlines()125 lista_data = [int(r) for r in contenido]126 return lista_data127 elif op == 8:128 archivo = open("1000000.txt", "r")129 contenido = archivo.readlines()130 lista_data = [int(r) for r in contenido]131 return lista_data132 elif op == 9:133 archivo = open("2000000.txt", "r")134 contenido = archivo.readlines()135 lista_data = [int(r) for r in contenido]136 return lista_data137while not salir:138 print ("1: Ordenamiento Por Seleccion")139 print ("2: Ordenamiento Por combinacion")140 print ("3: Ordenamiento Por Inserccion")141 print ("4: SALIR")142 print ("Elige una opcion")143 opcion = tipoOperacion()144 if opcion == 1:145 print ("A SELECCIONADO LA OPCION :", "Ordenamiento Por Seleccion")146 while not sal:147 print ("1: (100)")148 print ("2: (1000)")149 print ("3: (5000)")150 print ("4: (10000)")151 print ("5: (50000)")152 print ("6: (100000)")153 print ("7: (500000)")154 print ("8: (1000000)")155 print ("9: (2000000)")156 print("0: Salir")157 print ("Ingrese la Opcion con el Numero de valores a Operar")158 op = numeroValores()159 if op == 1:160 print("A seleccionado la operacion con 100 valores")161 #leeArchivo()162 starting_point = time.time()163 A = leeLista(op)164 ordenamiento_Seleccion(A, len(A))165 elapsed_time = time.time() - starting_point166 elapsed_time_minutes = elapsed_time / 60167 elapsed_time_seconds = elapsed_time % 60168 print ("Tiempo", "Minutos:", elapsed_time_minutes ,"Segundos: ", elapsed_time_seconds)169 elif op ==2:170 print("A seleccionado la operacion con 1000 valores")171 # leeArchivo()172 starting_point = time.time()173 A = leeLista(op)174 ordenamiento_Seleccion(A, len(A))175 elapsed_time = time.time() - starting_point176 elapsed_time_minutes = elapsed_time / 60177 elapsed_time_seconds = elapsed_time % 60178 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)179 elif op ==3:180 print ("A seleccionado la operacion con 5000 valores")181 # leeArchivo()182 starting_point = time.time()183 A = leeLista(op)184 ordenamiento_Seleccion(A, len(A))185 elapsed_time = time.time() - starting_point186 elapsed_time_minutes = elapsed_time / 60187 elapsed_time_seconds = elapsed_time % 60188 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)189 elif op == 4:190 print ("A seleccionado la operacion con 10000 valores")191 starting_point = time.time()192 A = leeLista(op)193 ordenamiento_Seleccion(A, len(A))194 elapsed_time = time.time() - starting_point195 elapsed_time_minutes = elapsed_time / 60196 elapsed_time_seconds = elapsed_time % 60197 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)198 elif op == 5:199 print ("A seleccionado la operacion con 50000 valores")200 starting_point = time.time()201 A = leeLista(op)202 ordenamiento_Seleccion(A, len(A))203 elapsed_time = time.time() - starting_point204 elapsed_time_minutes = elapsed_time / 60205 elapsed_time_seconds = elapsed_time % 60206 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)207 elif op == 6:208 print ("A seleccionado la operacion con 500000 valores")209 starting_point = time.time()210 A = leeLista(op)211 ordenamiento_Seleccion(A, len(A))212 elapsed_time = time.time() - starting_point213 elapsed_time_minutes = elapsed_time / 60214 elapsed_time_seconds = elapsed_time % 60215 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)216 elif op == 7:217 print ("A seleccionado la operacion con 100000 valores")218 starting_point = time.time()219 A = leeLista(op)220 ordenamiento_Seleccion(A, len(A))221 elapsed_time = time.time() - starting_point222 elapsed_time_minutes = elapsed_time / 60223 elapsed_time_seconds = elapsed_time % 60224 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)225 elif op == 8:226 print ("A seleccionado la operacion con 1000000 valores")227 starting_point = time.time()228 A = leeLista(op)229 ordenamiento_Seleccion(A, len(A))230 elapsed_time = time.time() - starting_point231 elapsed_time_minutes = elapsed_time / 60232 elapsed_time_seconds = elapsed_time % 60233 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)234 elif op == 9:235 print ("A seleccionado la operacion con 2000000 valores")236 starting_point = time.time()237 A = leeLista(op)238 ordenamiento_Seleccion(A, len(A))239 elapsed_time = time.time() - starting_point240 elapsed_time_minutes = elapsed_time / 60241 elapsed_time_seconds = elapsed_time % 60242 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)243 elif op == 0:244 sal = True245 else:246 print ("Introduce un numero entre 1 y 9")247 print ("Fin")248 print (" ")249 elif opcion == 2:250 print ("A SELECCIONADO LA OPCION 2:", "Ordenamiento por Combinacion")251 while not sal:252 print ("1: (100)")253 print ("2: (1000)")254 print ("3: (5000)")255 print ("4: (10000)")256 print ("5: (50000)")257 print ("6: (100000)")258 print ("7: (500000)")259 print ("8: (1000000)")260 print ("9: (2000000)")261 print("0: Salir")262 print ("Ingrese la Opcion con el Numero de valores a Operar")263 op = numeroValores()264 if op == 1:265 print("A seleccionado la operacion con 100 valores")266 starting_point = time.time()267 B = leeLista(op)268 ordenamiento_Combinacion(B)269 elapsed_time = time.time() - starting_point270 elapsed_time_minutes = elapsed_time / 60271 elapsed_time_seconds = elapsed_time % 60272 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)273 elif op == 2:274 print("A seleccionado la operacion con 1000 valores")275 starting_point = time.time()276 B = leeLista(op)277 ordenamiento_Combinacion(B)278 elapsed_time = time.time() - starting_point279 elapsed_time_minutes = elapsed_time / 60280 elapsed_time_seconds = elapsed_time % 60281 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)282 elif op == 3:283 print ("A seleccionado la operacion con 5000 valores")284 starting_point = time.time()285 B = leeLista(op)286 ordenamiento_Combinacion(B)287 elapsed_time = time.time() - starting_point288 elapsed_time_minutes = elapsed_time / 60289 elapsed_time_seconds = elapsed_time % 60290 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)291 elif op == 4:292 print ("A seleccionado la operacion con 10000 valores")293 starting_point = time.time()294 B = leeLista(op)295 ordenamiento_Combinacion(B)296 elapsed_time = time.time() - starting_point297 elapsed_time_minutes = elapsed_time / 60298 elapsed_time_seconds = elapsed_time % 60299 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)300 elif op == 5:301 print ("A seleccionado la operacion con 50000 valores")302 starting_point = time.time()303 B = leeLista(op)304 ordenamiento_Combinacion(B)305 elapsed_time = time.time() - starting_point306 elapsed_time_minutes = elapsed_time / 60307 elapsed_time_seconds = elapsed_time % 60308 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)309 elif op == 6:310 print ("A seleccionado la operacion con 500000 valores")311 starting_point = time.time()312 B = leeLista(op)313 ordenamiento_Combinacion(B)314 elapsed_time = time.time() - starting_point315 elapsed_time_minutes = elapsed_time / 60316 elapsed_time_seconds = elapsed_time % 60317 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)318 elif op == 7:319 print ("A seleccionado la operacion con 100000 valores")320 starting_point = time.time()321 B = leeLista(op)322 ordenamiento_Combinacion(B)323 elapsed_time = time.time() - starting_point324 elapsed_time_minutes = elapsed_time / 60325 elapsed_time_seconds = elapsed_time % 60326 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)327 elif op == 8:328 print ("A seleccionado la operacion con 1000000 valores")329 starting_point = time.time()330 B = leeLista(op)331 ordenamiento_Combinacion(B)332 elapsed_time = time.time() - starting_point333 elapsed_time_minutes = elapsed_time / 60334 elapsed_time_seconds = elapsed_time % 60335 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)336 elif op == 9:337 print ("A seleccionado la operacion con 2000000 valores")338 starting_point = time.time()339 B = leeLista(op)340 ordenamiento_Combinacion(B)341 elapsed_time = time.time() - starting_point342 elapsed_time_minutes = elapsed_time / 60343 elapsed_time_seconds = elapsed_time % 60344 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)345 elif op == 0:346 sal = True347 else:348 print ("Introduce un numero entre 1 y 9")349 print ("Fin")350 print (" ")351 elif opcion == 3:352 print ("A SELECCIONADO LA OPCION 3 :", "Ordenamiento por Insercion")353 while not sal:354 print ("1: (100)")355 print ("2: (1000)")356 print ("3: (5000)")357 print ("4: (10000)")358 print ("5: (50000)")359 print ("6: (100000)")360 print ("7: (500000)")361 print ("8: (1000000)")362 print ("9: (2000000)")363 print("0: Salir")364 print ("Ingrese la Opcion con el Numero de valores a Operar")365 op = numeroValores()366 if op == 1:367 print("A seleccionado la operacion con 100 valores")368 starting_point = time.time()369 B = leeLista(op)370 ordenamiento_insercion(B)371 elapsed_time = time.time() - starting_point372 elapsed_time_minutes = elapsed_time / 60373 elapsed_time_seconds = elapsed_time % 60374 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)375 elif op == 2:376 print("A seleccionado la operacion con 1000 valores")377 starting_point = time.time()378 B = leeLista(op)379 ordenamiento_insercion(B)380 elapsed_time = time.time() - starting_point381 elapsed_time_minutes = elapsed_time / 60382 elapsed_time_seconds = elapsed_time % 60383 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)384 elif op == 3:385 print ("A seleccionado la operacion con 5000 valores")386 starting_point = time.time()387 B = leeLista(op)388 ordenamiento_insercion(B)389 elapsed_time = time.time() - starting_point390 elapsed_time_minutes = elapsed_time / 60391 elapsed_time_seconds = elapsed_time % 60392 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)393 elif op == 4:394 print ("A seleccionado la operacion con 10000 valores")395 starting_point = time.time()396 B = leeLista(op)397 ordenamiento_insercion(B)398 elapsed_time = time.time() - starting_point399 elapsed_time_minutes = elapsed_time / 60400 elapsed_time_seconds = elapsed_time % 60401 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)402 elif op == 5:403 print ("A seleccionado la operacion con 50000 valores")404 starting_point = time.time()405 B = leeLista(op)406 ordenamiento_insercion(B)407 elapsed_time = time.time() - starting_point408 elapsed_time_minutes = elapsed_time / 60409 elapsed_time_seconds = elapsed_time % 60410 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)411 elif op == 6:412 print ("A seleccionado la operacion con 500000 valores")413 starting_point = time.time()414 B = leeLista(op)415 ordenamiento_insercion(B)416 elapsed_time = time.time() - starting_point417 elapsed_time_minutes = elapsed_time / 60418 elapsed_time_seconds = elapsed_time % 60419 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)420 elif op == 7:421 print ("A seleccionado la operacion con 100000 valores")422 starting_point = time.time()423 B = leeLista(op)424 ordenamiento_insercion(B)425 elapsed_time = time.time() - starting_point426 elapsed_time_minutes = elapsed_time / 60427 elapsed_time_seconds = elapsed_time % 60428 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)429 elif op == 8:430 print ("A seleccionado la operacion con 1000000 valores")431 starting_point = time.time()432 B = leeLista(op)433 ordenamiento_insercion(B)434 elapsed_time = time.time() - starting_point435 elapsed_time_minutes = elapsed_time / 60436 elapsed_time_seconds = elapsed_time % 60437 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)438 elif op == 9:439 print ("A seleccionado la operacion con 2000000 valores")440 starting_point = time.time()441 B = leeLista(op)442 ordenamiento_insercion(B)443 elapsed_time = time.time() - starting_point444 elapsed_time_minutes = elapsed_time / 60445 elapsed_time_seconds = elapsed_time % 60446 print ("Tiempo", "Minutos:", elapsed_time_minutes, "Segundos: ", elapsed_time_seconds)447 elif op == 0:448 sal = True449 else:450 print ("Introduce un numero entre 1 y 9")451 print ("Fin")452 print (" ")453 elif opcion == 4:454 salir = True455 else:456 print ("Introduce un numero entre 1 y 3")...

Full Screen

Full Screen

views.py

Source:views.py Github

copy

Full Screen

...72 print("Start times reset ........")73 context = {"test": "test"}74 return render(request, 'set_race.html', context)75# Create your views here.76# def _set_team_elapsed_time(last_runner):77#78# runner_number = last_runner.number79# team_number = runner_number[1:]80#81# team = Teams.objects.get(number=team_number)82# print(f"Team name is: {team.name}")83# print(f"Runner A elapsed time: {team.runners_A.elapsed_time} Type is: {type(team.runners_A.elapsed_time)}")84# print(f"Runner B elapsed time: {team.runners_B.elapsed_time} Type is: {type(team.runners_B.elapsed_time)}")85# print(f"Runner C elapsed time: {team.runners_C.elapsed_time} Type is: {type(team.runners_C.elapsed_time)}")86# print(f"Runner D elapsed time: {team.runners_D.elapsed_time} Type is: {type(team.runners_D.elapsed_time)}")87# print(f"Runner E elapsed time: {team.runners_E.elapsed_time} Type is: {type(team.runners_E.elapsed_time)}")88# print(f"Runner F elapsed time: {team.runners_F.elapsed_time} Type is: {type(team.runners_F.elapsed_time)}")89#90# accumulated_time = datetime.time("00:00:00")91# elapsed_times_list = [team.runners_A.elapsed_time, team.runners_B.elapsed_time, team.runners_C.elapsed_time,92# team.runners_D.elapsed_time, team.runners_E.elapsed_time, team.runners_F.elapsed_time]93# for counter, et in enumerate(elapsed_times_list):94# if et is not None:95# accumulated_time = accumulated_time + et96# print(f"Loop: {counter} Accumulated time is: {accumulated_time}")97#98#99# print(f"Team elapsed time is: {accumulated_time}")100# team.elapsed_time = accumulated_time101# team.save()102def find_runner(request, runner_id):103 # Ensure that all characters are upper case.104 runner_id = runner_id.upper()105 elapsed_time = ""106 if request.user.is_staff or request.user.is_superuser:107 #queryset_all_runners = Post.objects.all().order_by('-created')108 try:109 runner = Runner.objects.get(number=runner_id)110 message = f"Runner is: {runner.first_name} {runner.last_name} " \111 f"Number: {runner.number} Age: {runner.age} " \112 f"Start time: {runner.start_time} End time: {runner.end_time}"113 print(f"Message: {message}")114 if request.method == "POST":115 data = request.POST116 time_value = data.get("end")117 print(f"Time value is: {time_value}")118 datetime_object = parser.parse(time_value)119 runner.end_time = tz_lon.localize(datetime_object)120 #runner.end_time = datetime_object121 print(f"The end time type is: {type(runner.end_time)}")122 if runner.start_time is not None:123 if runner.start_time <= runner.end_time:124 elapsed_time = runner.end_time - runner.start_time125 runner.elapsed_time = str(elapsed_time)126 #_set_team_elapsed_time(runner)127 else:128 print(f"Error start time is after end time: {runner.end_time}")129 else:130 print(f"No start time for runner")131 elapsed_time = "No start time!"132 print(f"Runners elapsed time is: {runner.elapsed_time}")133 runner.save()134 #_set_runner_next_start(runner)135 if request.method == "GET":136 elapsed_time = runner.elapsed_time137 print(f"Elapsed time in get is: {elapsed_time}")138 context = {"number": runner.number,139 "name": f"{runner.first_name} {runner.last_name}",140 "gender": runner.gender,...

Full Screen

Full Screen

main.py

Source:main.py Github

copy

Full Screen

1from naive_bayes import *2from knn import *3from decision_tree import *4from kmeans import *5from random_forest import *6from support_vector_machines import *7from multi_layer_preceptron import *8from association_rules import *9import matplotlib.pyplot as plt; plt.rcdefaults()10import numpy as np11import matplotlib.pyplot as plt12def make_plots():13 objects = ('Naive Bayes', '\nKNN-3', 'KNN-5', '\nKNN-11', 'Decision Tree', '\nKMeans', '\n\nRandom Forest', '\nSVM', 'MLP')14 # , '\nSVM', 'MLP'15 y = [1, 2, 3, 4, 5, 6, 7, 8, 9]16 y_pos = np.arange(len(objects))17 elapsed_times = []18 accs = []19 elapsed_time, acc_score, c_matrix = do_naive_bayes()20 elapsed_times.append(elapsed_time)21 accs.append(acc_score)22 elapsed_time, acc_score, c_matrix = do_knn(3)23 elapsed_times.append(elapsed_time)24 accs.append(acc_score)25 elapsed_time, acc_score, c_matrix = do_knn(5)26 elapsed_times.append(elapsed_time)27 accs.append(acc_score)28 elapsed_time, acc_score, c_matrix = do_knn(11)29 elapsed_times.append(elapsed_time)30 accs.append(acc_score)31 elapsed_time, acc_score, c_matrix = do_decision_tree()32 elapsed_times.append(elapsed_time)33 accs.append(acc_score)34 elapsed_time, acc_score, c_matrix = do_kmeans()35 elapsed_times.append(elapsed_time)36 accs.append(acc_score)37 elapsed_time, acc_score, c_matrix = do_random_forest()38 elapsed_times.append(elapsed_time)39 accs.append(acc_score)40 elapsed_time, acc_score, c_matrix = do_SVM()41 elapsed_times.append(elapsed_time)42 accs.append(acc_score)43 elapsed_time, acc_score, c_matrix = do_MLP()44 elapsed_times.append(elapsed_time)45 accs.append(acc_score)46 # count_frequency_columns()47 # count_min_max_mean_columns()48 print(accs)49 plt.bar(y_pos, elapsed_times, align='center', alpha=0.5)50 plt.xticks(y_pos, objects)51 plt.ylabel('Time')52 plt.title('Time')53 fig = plt.gcf()54 for index, value in enumerate(elapsed_times):55 plt.text(index - 0.2, elapsed_times[index], str("%.3f" % elapsed_times[index]))56 fig.savefig(f'time.png', dpi=100)57 plt.close(fig)58 plt.close()59 plt.bar(y_pos, accs, align='center', alpha=0.5)60 plt.xticks(y_pos, objects)61 plt.ylabel('Accuracy')62 plt.title('Accuracy')63 fig = plt.gcf()64 for index, value in enumerate(y):65 plt.text(index - 0.2, accs[index], str("%.3f" % accs[index]))66 fig.savefig(f'Accuracy.png', dpi=100)67 plt.close(fig)68 plt.close()69# do_association_rules()...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run unittest-xml-reporting automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful