2016-05-24 19:20:34 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from include.common_classes_60 import PandoraWebDriverTestCase
|
2016-09-06 16:00:08 +02:00
|
|
|
from include.common_functions_60 import login, click_menu_element, detect_and_pass_all_wizards, gen_random_string
|
2016-09-15 16:18:25 +02:00
|
|
|
from include.agent_functions import search_agent,create_agent, delete_agent
|
2016-08-31 15:29:51 +02:00
|
|
|
from include.api_functions import *
|
2016-09-15 16:18:25 +02:00
|
|
|
from include.module_functions import search_module
|
2016-09-12 15:29:55 +02:00
|
|
|
from include.bulk_operations import *
|
2016-05-24 19:20:34 +02:00
|
|
|
from selenium import webdriver
|
|
|
|
from selenium.webdriver.common.by import By
|
|
|
|
from selenium.webdriver.common.keys import Keys
|
|
|
|
from selenium.webdriver.support.ui import Select
|
|
|
|
from selenium.common.exceptions import NoSuchElementException
|
|
|
|
from selenium.common.exceptions import NoAlertPresentException
|
2016-09-15 16:18:25 +02:00
|
|
|
from selenium.webdriver.remote.webelement import WebElement
|
2016-08-18 11:33:30 +02:00
|
|
|
|
2016-09-19 15:14:01 +02:00
|
|
|
import unittest2, time, re
|
2017-01-09 14:45:32 +01:00
|
|
|
import logging
|
2016-05-24 19:20:34 +02:00
|
|
|
|
2016-08-18 11:33:30 +02:00
|
|
|
class Bulk_operations(PandoraWebDriverTestCase):
|
|
|
|
|
|
|
|
test_name = u'Bulk_operation'
|
2016-09-12 15:29:55 +02:00
|
|
|
test_description = u'Bulk operation tests'
|
2016-08-18 11:33:30 +02:00
|
|
|
tickets_associated = []
|
|
|
|
|
|
|
|
def test_A_delete_agent_bulk_operations(self):
|
2016-07-05 12:17:21 +02:00
|
|
|
|
2016-08-18 11:33:30 +02:00
|
|
|
u"""
|
2016-09-12 15:29:55 +02:00
|
|
|
Creation two agents and delete this agents using bulk operation
|
2016-08-18 11:33:30 +02:00
|
|
|
Ticket Associated = 3831
|
|
|
|
"""
|
2016-08-31 15:29:51 +02:00
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.basicConfig(filename="Bulk_operations.log", level=logging.INFO, filemode='w')
|
|
|
|
|
2016-08-31 15:29:51 +02:00
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
2016-05-24 19:20:34 +02:00
|
|
|
driver = self.driver
|
2016-08-08 19:01:42 +02:00
|
|
|
self.login()
|
2016-08-18 11:33:30 +02:00
|
|
|
detect_and_pass_all_wizards
|
2016-07-05 12:17:21 +02:00
|
|
|
|
2016-08-31 15:29:51 +02:00
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
2016-07-05 12:17:21 +02:00
|
|
|
|
2016-08-31 15:29:51 +02:00
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
2016-09-06 14:36:23 +02:00
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
delete_agent(driver,[agent_name_1,agent_name_2])
|
2016-08-31 15:29:51 +02:00
|
|
|
|
2016-08-18 11:33:30 +02:00
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
|
|
|
self.assertEqual(self.driver.find_element_by_xpath('//div[@id="main"]//td[contains(.,"Successfully deleted (2)")]').text,"Successfully deleted (2)")
|
2016-09-12 15:29:55 +02:00
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_A_delete_agent_bulk_operations is correct")
|
|
|
|
|
2016-09-12 15:29:55 +02:00
|
|
|
def test_B_edit_agents_group_bulk_operations(self):
|
|
|
|
|
|
|
|
u"""
|
|
|
|
Create two agents and edit group with bulk operation
|
|
|
|
"""
|
2016-08-18 11:33:30 +02:00
|
|
|
|
2016-09-12 15:29:55 +02:00
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
|
|
|
|
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
agent_names_list = [agent_name_1,agent_name_2]
|
|
|
|
|
|
|
|
edit_agents_in_bulk(driver,agent_names_list,new_group="Web")
|
|
|
|
|
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
|
|
|
self.assertEqual(self.driver.find_element_by_xpath('//div[@id="main"]//td[contains(.,"Agents updated successfully(2)")]').text,"Agents updated successfully(2)")
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_B_edit_agents_group_bulk_operations is correct")
|
|
|
|
|
2016-09-13 09:48:10 +02:00
|
|
|
def test_C_edit_agent_description_bulk_operation(self):
|
|
|
|
|
|
|
|
u"""
|
|
|
|
Create two agents and edit description with bulk operation
|
|
|
|
"""
|
|
|
|
|
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
2016-09-15 16:18:25 +02:00
|
|
|
|
2016-09-13 09:48:10 +02:00
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
agent_names_list = [agent_name_1,agent_name_2]
|
|
|
|
|
|
|
|
edit_agents_in_bulk(driver,agent_names_list,new_description="test C edit description bulk operation")
|
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
|
|
|
self.assertEqual(self.driver.find_element_by_xpath('//div[@id="main"]//td[contains(.,"Agents updated successfully(2)")]').text,"Agents updated successfully(2)")
|
2016-09-15 16:18:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
search_agent(driver,agent_name_1,go_to_agent=True)
|
|
|
|
|
|
|
|
self.assertEqual("test C edit description bulk operation" in driver.page_source,True)
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_C_edit_agent_description_bulk_operation is correct")
|
|
|
|
|
2016-09-13 12:06:27 +02:00
|
|
|
def test_D_delete_modules_in_bulk(self):
|
|
|
|
|
|
|
|
u"""
|
|
|
|
Create two agents with two modules and delete this modules through bulk operation
|
|
|
|
"""
|
2016-09-13 09:48:10 +02:00
|
|
|
|
2016-09-13 12:06:27 +02:00
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
|
|
|
module_name_1 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
|
|
|
|
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
2016-09-12 15:29:55 +02:00
|
|
|
|
2016-09-13 12:06:27 +02:00
|
|
|
params = [agent_name_1,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
params = [agent_name_2,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
agent_name_list = [agent_name_1,agent_name_2]
|
|
|
|
|
|
|
|
module_name_list = [module_name_1]
|
|
|
|
|
|
|
|
delete_modules_in_bulk(driver,agent_name_list,module_name_list)
|
|
|
|
|
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
|
|
|
|
2016-09-15 16:18:25 +02:00
|
|
|
search_module(driver,agent_name_1,module_name_1)
|
|
|
|
|
|
|
|
element = driver.find_elements_by_xpath('//a[contains(.,"No available data to show")]')
|
|
|
|
|
|
|
|
self.assertEqual(element,[])
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_D_delete_modules_in_bulk is correct")
|
2016-09-14 10:18:47 +02:00
|
|
|
|
|
|
|
def test_E_edit_module_group_in_bulk(self):
|
|
|
|
|
|
|
|
u"""
|
|
|
|
Create two agents and one module in this agents. With bulk operation, change module group that this module
|
|
|
|
"""
|
|
|
|
|
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
|
|
|
module_name_1 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
|
|
|
|
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_1,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
params = [agent_name_2,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
agent_name_list = [agent_name_1,agent_name_2]
|
|
|
|
|
|
|
|
module_name_list = [module_name_1]
|
|
|
|
|
|
|
|
edit_modules_in_bulk(driver,module_name_list,agent_name_list,new_module_group="Users")
|
|
|
|
|
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
|
|
|
|
2016-09-15 16:18:25 +02:00
|
|
|
search_module(driver,agent_name_1,module_name_1,go_to_module=True)
|
2016-09-14 15:09:35 +02:00
|
|
|
|
2016-09-15 16:18:25 +02:00
|
|
|
self.assertEqual("Users" in driver.page_source,True)
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_E_edit_module_group_in_bulk is correct")
|
2016-09-15 16:18:25 +02:00
|
|
|
|
|
|
|
def test_F_edit_module_umbral_in_bulk(self):
|
2016-09-14 15:09:35 +02:00
|
|
|
|
|
|
|
u"""
|
|
|
|
Create two agents and one module in this agents. With bulk operation, change module umbral with bulk operation
|
|
|
|
"""
|
|
|
|
|
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
|
|
|
module_name_1 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
2016-09-15 16:18:25 +02:00
|
|
|
|
2016-09-14 15:09:35 +02:00
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_1,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
params = [agent_name_2,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
agent_name_list = [agent_name_1,agent_name_2]
|
|
|
|
|
|
|
|
module_name_list = [module_name_1]
|
|
|
|
|
|
|
|
edit_modules_in_bulk(driver,module_name_list,agent_name_list,new_min="1",new_max="2")
|
|
|
|
|
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
2016-09-16 10:38:12 +02:00
|
|
|
|
|
|
|
search_module(driver,agent_name_1,module_name_1,go_to_module=True)
|
|
|
|
|
|
|
|
driver.find_element_by_xpath('//a[contains(.,"Advanced options")]').click()
|
|
|
|
|
|
|
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"1")]')
|
|
|
|
self.assertIsInstance(element,WebElement)
|
|
|
|
|
|
|
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"2")]')
|
|
|
|
self.assertIsInstance(element,WebElement)
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_F_edit_module_umbral_in_bulk is correct")
|
2016-09-20 13:30:53 +02:00
|
|
|
|
|
|
|
def test_G_edit_module_threshold_in_bulk(self):
|
|
|
|
|
|
|
|
u"""
|
|
|
|
Create two agents and one module in this agents. With bulk operation, change FF Threshold with bulk operation
|
|
|
|
Ticket Associated = 4059
|
|
|
|
"""
|
|
|
|
|
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
|
|
|
|
module_name_1 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
|
|
|
|
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_1,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
params = [agent_name_2,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
agent_name_list = [agent_name_1,agent_name_2]
|
|
|
|
|
|
|
|
module_name_list = [module_name_1]
|
|
|
|
|
|
|
|
ff_threshold_list = [0,1,2]
|
|
|
|
|
|
|
|
edit_modules_in_bulk(driver,module_name_list,agent_name_list,ff_threshold_list=ff_threshold_list)
|
|
|
|
|
|
|
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
|
|
|
search_module(driver,agent_name_1,module_name_1,go_to_module=True)
|
|
|
|
|
|
|
|
driver.find_element_by_xpath('//a[contains(.,"Advanced options")]').click()
|
|
|
|
|
|
|
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"0")]')
|
|
|
|
self.assertIsInstance(element,WebElement)
|
|
|
|
|
|
|
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"1")]')
|
|
|
|
self.assertIsInstance(element,WebElement)
|
|
|
|
|
|
|
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"2")]')
|
|
|
|
self.assertIsInstance(element,WebElement)
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_G_edit_module_threshold_in_bulk is correct")
|
|
|
|
|
2016-09-26 16:30:52 +02:00
|
|
|
def test_H_copy_modules_in_bulk(self):
|
2016-09-20 13:30:53 +02:00
|
|
|
|
2016-09-26 16:30:52 +02:00
|
|
|
u"""
|
|
|
|
Create three agents One of them with a module. Through a bulk operation, copy this module in other two agents
|
|
|
|
"""
|
|
|
|
|
|
|
|
agent_name_1 = gen_random_string(6)
|
|
|
|
agent_name_2 = gen_random_string(6)
|
|
|
|
agent_name_3 = gen_random_string(6)
|
|
|
|
|
|
|
|
module_name_1 = gen_random_string(6)
|
|
|
|
|
|
|
|
driver = self.driver
|
|
|
|
|
|
|
|
activate_api(driver,"1234")
|
|
|
|
|
|
|
|
params = [agent_name_1,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_2,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_3,"127.0.0.1","0","4","0","300","2","pandorafms","2","0","0","pruebas"]
|
|
|
|
create_agent_api(driver,params,user="admin",pwd="pandora")
|
|
|
|
|
|
|
|
params = [agent_name_1,module_name_1,"0","6","1","0","0","0","0","0","0","0","0","129.99.40.1","0","0","180","0","0","0","0","Host_Alive"]
|
|
|
|
add_network_module_to_agent_api(driver,params,user="admin",pwd="pandora",apipwd="1234")
|
|
|
|
|
|
|
|
lista = driver.current_url.split('/')
|
|
|
|
|
|
|
|
url = lista[0]+'//'+lista[2]+'/pandora_console'
|
|
|
|
|
|
|
|
driver.get(url)
|
|
|
|
|
|
|
|
destiny_agents_list = [agent_name_2,agent_name_3]
|
|
|
|
|
|
|
|
module_list = [module_name_1]
|
|
|
|
|
|
|
|
agent_name = agent_name_1.lower()
|
|
|
|
|
|
|
|
copy_modules_in_bulk(driver,agent_name,module_list,destiny_agents_list)
|
|
|
|
|
|
|
|
search_module(driver,agent_name_2,module_name_1)
|
|
|
|
|
|
|
|
self.assertEqual(module_name_1 in driver.page_source,True)
|
|
|
|
|
|
|
|
search_module(driver,agent_name_3,module_name_1)
|
|
|
|
|
|
|
|
self.assertEqual(module_name_1 in driver.page_source,True)
|
|
|
|
|
2017-01-09 14:45:32 +01:00
|
|
|
logging.info("test_H_copy_modules_in_bulk is correct")
|
2016-09-20 13:30:53 +02:00
|
|
|
|
2016-07-05 12:17:21 +02:00
|
|
|
if __name__ == "__main__":
|
2016-09-19 15:14:01 +02:00
|
|
|
unittest2.main()
|