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" |
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 robot.api import ExecutionResult, ResultVisitor | |
from datetime import timedelta | |
class SuiteReportVisitor(ResultVisitor): | |
def __init__(self): | |
self.report = [] | |
self.test_report = [] | |
self.keyword_report = [] | |
def visit_suite(self, suite): |
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
# Installation: | |
-------------- | |
# pip install haralyzer | |
# Code: | |
------- | |
import json | |
from haralyzer import HarParser, HarPage | |
with open('google.har', 'r', encoding='utf-8') as f: |
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 import ExecutionResult | |
from jinja2 import Template | |
from datetime import date | |
today = date.today() | |
now_date = today.strftime("%d-%b-%y") | |
# get all output.xml files in current path | |
output_names = [] | |
list_of_suites = set() |
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): | |
self.JENKINS_URL = "http://<jenkins_url>:8081" |
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
# Step 1: In jenkins home directory create folder with name "init.groovy.d" | |
# Step 2: under above folder create file with name "startup-properties.groovy" | |
# Step 3: Include following code in it | |
import jenkins.model.Jenkins | |
import java.util.logging.LogManager | |
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox allow-same-origin allow-popups allow-scripts; default-src *; img-src 'self' data:; style-src * http://* 'unsafe-inline' 'unsafe-eval'; script-src 'self' http://* 'unsafe-inline' 'unsafe-eval'"); |
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
TRIMS - https://automationintesting.com/2019/08/trims-automation-in-testing-strategy.html | |
Few Useful Links (from gaurav talk) - https://automationhacks.io/slides/2020/se-conf/how-to-build-an-automation-framework-with-selenium/09.0-next-steps/ | |
xpath functions: https://medium.com/@nambiarjishnu1210/xpath-functions-a078e2fccbb6 |
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
https://club.ministryoftesting.com/t/products-places-apps-and-websites-to-practice-software-testing-wiki/66651 | |
Wiki: https://club.ministryoftesting.com/tag/wiki |
NewerOlder