This document provides instructions for GitHub Copilot to generate code that aligns with the Veeva Vault CRM Automation Framework built using Robot Framework. Follow these conventions strictly to maintain consistency across the codebase.
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
| name: Robocop Code Analysis | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| robocop: | |
| runs-on: linux-x64-small |
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 fs from 'fs'; | |
| import path from 'path'; | |
| // ✅ Correct type imports for a custom reporter: | |
| import type { | |
| FullConfig, | |
| FullResult, | |
| Reporter, | |
| Suite, | |
| TestCase, |
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>") |
NewerOlder