This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import pysnow | |
import logging | |
import threading | |
from deepdiff import DeepDiff | |
from datetime import datetime | |
class DataCompare: | |
delimiter = "|" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
from robot.api import ExecutionResult, ResultVisitor | |
class XrayIdChecker(ResultVisitor): | |
def __init__(self): | |
self.itdft_tags = [] | |
self.non_duplicate_tags_list = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.3"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="ServiceNow Table Performance Testing" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
<collectionProp name="Arguments.arguments"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pysnow | |
from typing import Dict, List, Optional, Any | |
from robot.libraries.BuiltIn import BuiltIn | |
from robot.api import logger | |
from robot.api.deco import keyword | |
from urllib.parse import urlparse | |
class PySnowHelper: | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
from time import sleep | |
import multiprocessing | |
import requests | |
class BuildJob(): | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
from robot.api import ExecutionResult | |
from robot.result.model import Keyword | |
from robot.result.visitor import ResultVisitor | |
from collections import Counter | |
def generate_html_report(test_stats, tag_stats, failed_modules, failure_message_counts, failure_message_by_module_counts, failure_keywords_counts, output_file): | |
with open(output_file, 'w') as f: | |
f.write("<html><body>") | |
f.write("<h2>ServiceNow Project Status:</h2>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict | |
from robot.api import ExecutionResult | |
from robot.result.model import Keyword | |
from robot.result.visitor import ResultVisitor | |
from collections import Counter | |
def generate_html_report(test_stats, tag_stats, failed_modules, failure_message_counts, failure_message_by_module_counts, failure_keywords_counts, output_file): | |
with open(output_file, 'w') as f: | |
f.write("<html><body>") | |
f.write("<h2>ServiceNow Project Status:</h2>") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import time | |
from ntpath import join | |
import os | |
import json | |
from simple_salesforce import Salesforce, format_soql, SFType | |
from SSHLibrary import * | |
from urllib.parse import urlparse | |
from robot.api import logger | |
from robot.api.deco import keyword |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from robot.api.parsing import get_model, ModelVisitor, Token | |
class RobotParser(ModelVisitor): | |
def __init__(self, filepath): | |
self.filepath = filepath | |
self.has_smoke_tag = False | |
def visit_SettingSection(self, node): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pysnow | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
import time | |
start = time.time() | |
print(f"Start time: {time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(start))}") | |
source_instance = 'service-now.com' | |
user_name = "abc" |
NewerOlder