Skip to content

Commit ea54efb

Browse files
committed
Script fixes for april script failures - export tests.
1 parent e29c991 commit ea54efb

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Features/DataDictionary/test_cases/report.html
246246

247247

248248
#Ignoring compliled files of Powerbi_integration_exports
249-
Features/Powerbi_integration_exports/settings.cfg
249+
P1P2Tests/settings.cfg
250250
Features/Powerbi_integration_exports/report.html
251251
Features/Powerbi_integration_exports/test_cases/report.html
252252
Features/Powerbi_integration_exports/testCases/slack_charts
@@ -255,7 +255,7 @@ Features/Powerbi_integration_exports/testCases/slack_charts
255255
Features/FindDataById/testCases/test_cases/report.html
256256
Features/FindDataById/testCases/testCases/slack_charts
257257
Features/FindDataById/test_cases/report.html
258-
Features/FindDataById/settings.cfg
258+
P1P2Tests/settings.cfg
259259

260260
#Ignoring compliled files of QA_Requests
261261
QA_Requests/BHAStressTest/settings.cfg
@@ -276,7 +276,7 @@ ElasticSearchTests/testCases/report.html
276276
/ExportTests/testCases/report.html
277277
ExportTests/report.html
278278
ExportTests/report_*
279-
ExportTests/settings.cfg
279+
P1P2Tests/settings.cfg
280280
/ExportTests/userInputs/test_data/reassign_cases_*
281281
/ExportTests/userInputs/test_data/mobile_workers_*
282282
/ExportTests/userInputs/test_data/import_to_parent_*
@@ -310,13 +310,13 @@ Features/DataDictionary/testCases/report.html
310310
Features/DataDictionary/testCases/slack_charts
311311

312312
#Ignoring compliled files of Powerbi_integration_exports
313-
Features/Powerbi_integration_exports/settings.cfg
313+
P1P2Tests/settings.cfg
314314
Features/Powerbi_integration_exports/report.html
315315
Features/Powerbi_integration_exports/testCases/report.html
316316
Features/Powerbi_integration_exports/testCases/slack_charts
317317

318318
#Ignoring compliled files of FindDataById
319-
Features/FindDataById/settings.cfg
319+
P1P2Tests/settings.cfg
320320
Features/FindDataById/report.html
321321
Features/FindDataById/testCases/report.html
322322
Features/FindDataById/testCases/slack_charts

HQSmokeTests/testPages/data/export_data_page.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import os
22
import time
3+
from io import StringIO
4+
35
import pandas as pd
46
from datetime import datetime, timedelta
57

@@ -807,9 +809,14 @@ def clean_up_case_data(self):
807809
def verify_duplicate_data_in_dashboard(self, link, username, password):
808810
print(link)
809811
resp = requests.get(link, auth=(username, password)).text
810-
data = pd.read_html(resp, flavor='html5lib')
811-
data = (pd.DataFrame(data[0])).reset_index()
812-
duplicate = data[data.duplicated()]
812+
data = StringIO(resp)
813+
df = pd.read_fwf(data)
814+
print(df.head())
815+
df = df.reset_index(drop=True)
816+
duplicate = df[df.duplicated()]
817+
# data = pd.read_html(resp, flavor='html5lib')
818+
# data = (pd.DataFrame(data[0])).reset_index()
819+
# duplicate = data[data.duplicated()]
813820
if len(duplicate) > 0:
814821
print(duplicate)
815822
else:

0 commit comments

Comments
 (0)