Skip to content

Commit

Permalink
Added more metrics to test for
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartikeya99 committed Jul 18, 2019
1 parent 05e7718 commit c88cb3d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/pages/compareSystemParametersPage.js
Expand Up @@ -9,17 +9,17 @@ module.exports = {
pageHeaderText: "Compare System Parameters",
notAvailableMetrics: "//span[contains(text(), 'N/A')]"
},
metrics: ["System Info", "System Uptime", "CPU Cores", "RAM", "Saturation Metrics", "CPU Usage", "Network Traffic", "Load Average", "I/O Activity"],
metrics: ["System Info", "System Uptime", "CPU Cores", "RAM", "Saturation Metrics", "Load Average", "CPU Usage", "Interrupts", "Context Switches", "Memory Usage", "Swap Usage", "Swap Activity", "Mountpoint Usage", "Free Space", "Disk Operations", "Disk Bandwidth", "Disk IO Utilization", "Disk Latency", "Disk Load", "Network Traffic", "Network Utilization Hourly", "Load Average", "I/O Activity"],

graphsLocator (metricName){
locator = "//span[contains(text(), '"+ metricName +"')]";
return locator;
},

verifyMetricsExistence () {
for (var i in this.metrics) {
for (let i in this.metrics) {
I.seeElement(this.graphsLocator(this.metrics[i]));
}
I.dontSeeElement(this.fields.notAvailableMetrics);
}
}
};
7 changes: 5 additions & 2 deletions tests/pages/mysqlOverviewPage.js
Expand Up @@ -13,8 +13,11 @@ module.exports = {
},
metrics: ["MySQL Uptime", "Current QPS", "InnoDB Buffer Pool Size", "Buffer Pool Size of Total RAM",
"MySQL Connections", "MySQL Client Thread Activity", "MySQL Questions", "MySQL Thread Cache",
"MySQL Temporary Objects", "MySQL Select Types", "MySQL Sorts", "MySQL Aborted Connections", "MySQL Table Locks",
"Network Traffic", "Disk Latency"],
"MySQL Temporary Objects", "MySQL Select Types", "MySQL Sorts", "MySQL Slow Queries", "MySQL Aborted Connections", "MySQL Table Locks",
"Network Traffic", "MySQL Network Usage Hourly", "MySQL Internal Memory Overview", "Top Command Counters", "Disk Latency",
"Top Command Counters Hourly", "MySQL Handlers", "MySQL Transaction Handlers", "Process States", "Top Process States Hourly",
"MySQL Query Cache Memory", "MySQL Query Cache Activity", "MySQL File Openings", "MySQL Open Files", "MySQL Table Open Cache Status",
"MySQL Open Tables", "MySQL Table Definition Cache"],

graphsLocator (metricName){
locator = "//span[contains(text(), '"+ metricName +"')]";
Expand Down
5 changes: 3 additions & 2 deletions tests/pages/postgresqlOverviewPage.js
Expand Up @@ -13,8 +13,9 @@ module.exports = {
},
metrics: ["Version", "Max Connections", "Shared Buffers", "Disk-Page Buffers", "Memory Size for each Sort",
"Disk Cache Size", "Autovacuum", "PostgreSQL Connections", "Active Connections",
"Tuples", "Read Tuple Activity", "Transactions", "Duration of Transactions", "Checkpoint stats",
"Number of Locks", "Conflicts/Deadlocks"],
"Tuples", "Read Tuple Activity", "Transactions", "Duration of Transactions", "Number of Temp Files", "Size of Temp Files",
"Conflicts/Deadlocks", "Number of Locks", "Operations with Blocks", "Buffers", "Canceled Queries", "Cache Hit Ratio",
"Checkpoint stats", "Number of Locks"],

graphsLocator (metricName){
locator = "//span[contains(text(), '"+ metricName +"')]";
Expand Down
4 changes: 3 additions & 1 deletion tests/pages/systemOverviewPage.js
Expand Up @@ -9,7 +9,9 @@ module.exports = {
pageHeaderText: "System Overview",
notAvailableMetrics: "//span[contains(text(), 'N/A')]"
},
metrics: ["System Uptime", "Virtual CPUs", "Load Average", "RAM", "Memory Available", "CPU Usage", "CPU Saturation and Max Core Usage"],
metrics: ["System Uptime", "Virtual CPUs", "Load Average", "RAM", "Memory Available", "CPU Usage", "CPU Saturation and Max Core Usage",
"Interrupts and Context Switches", "Processes", "Memory Utilization", "Virtual Memory Utilization", "Swap Space", "Swap Activity", "I/O Activity",
"Global File Descriptors Usage", "Disk IO Latency", "Disk IO Load", "Network Traffic", "Local Network Errors", "TCP Retransmission"],

graphsLocator (metricName){
locator = "//span[contains(text(), '"+ metricName +"')]";
Expand Down

0 comments on commit c88cb3d

Please sign in to comment.