Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am tdharris on github.
* I am tywer (https://keybase.io/tywer) on keybase.
* I have a public key ASDRudm3qEMaLaMzmdadKR98llMHUFPEzkdwTKoJr3vziwo
To claim this, I am signing this object:
@tdharris
tdharris / calculateSums.js
Created March 10, 2016 21:46
How to solve calculating totalForAllResults.. some reference issue here..
if(err) return done(err);
app.logger.google(info, 'Finished processing days from date range:', results.length);
app.logger.google(info, 'Beginning to calculate totalsForAllResults');
/*---------- Get totalsForAllResults ----------*/
var totalsForAllResults = {};
// loop through each day
results.forEach(function(day){
// loop through the array of data
public class NumPad
{
@FindBy(css = "[id^='ISC2C_NumberPad_]'")
private WebElement[] buttons;
@FindBy(id = "manual_dial___dp_button___outbound_controls")
private WebElement hideNumPad;
public NumPad()
{
// Initialize the POM objects.
public class NumberPad
{
@FindBy(id = "ISC2C_NumberPad_1")
private WebElement num1;
@FindBy(id = "ISC2C_NumberPad_2")
private WebElement num2;
@FindBy(id = "ISC2C_NumberPad_3")
private WebElement num3;
@FindBy(id = "ISC2C_NumberPad_4")
private WebElement num4;
package lmp.test.comms.inbound;
import java.util.Collection;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
package lmp.test.comms.inbound;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Collection;
import obj.AccountData;
import obj.CallPathData;
import obj.DialerInitiativeData;
public class InboundCall extends PowerDialer
{
@FindBy(id = "inbound_callerid_span")
private WebElement inboundCallerId;
@FindBy(id = "inbound_acd_span")
private WebElement inboundRepQueue;
@FindBy(id = "close_inbound")
private WebElement closeInbound;
@FindBy(id= "inbound_call_pending")
private WebElement inboundCallPending;
package sf.test.telephony.us.transfers.warm;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import org.echarts.test.sip.CATException;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.After;
```Setting the base server to http://christiansen-pc:8080
Setting the project build number to 001
Setting the base configuration to beta
Setting the browser to googlechrome
Setting the language to en
Setting the test plan to
Setting the test build to
Starting ChromeDriver (v2.8.240825) on port 14931
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
package sf.test.telephony.us.transfers.warm;
import java.util.Collection;
import lmp.actions.CallPath;
import obj.CallPathData;
import obj.comms.nodes.NodeForward;
import obj.comms.nodes.NodeRepQueue;
import obj.comms.nodes.NodeStart;