Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
CRM Test is a Node.js test framework which calls Salesforce Rest API and create simple node.js scripts to perform different actions in salesforce. Currently CrmTest has a support of running in Amazon ec2 cloud. In this ReadMe the focus is to run CrmTest i
CRM Test is a Node.js test framework which calls Salesforce Rest API and create simple node.js scripts to perform different actions in salesforce. Currently CrmTest has a support of running in Amazon ec2 cloud. In this ReadMe the focus is to run CrmTest in Amazon EC2 instance having Ubuntu version.
###Motivation CRM Test has driven from the idea of Testing as a Service. The intent is to support development of E2E scenarios using simple Node.Js scripts.
###Tested OS
###Pre-requisites
###Setup Instructions
###How to execute the node.js module from on-prem
###Tests
Note: All the above reference is already mentioned in crmtest.js. If you are changing the project hierarchy this is something you need to consider.
Get OAuth access Token : In order to get oAuth access token we should invoke the getoauth method
var response = crmtest.getoauth(
baseUrl,
"<<username>>",
"<<password>>",
"<<consumer secret>>",
"<<consumer key>>");
var accessToken = crmtest.parseresponse(response,"access_token");
Here baseUrl is the instance url for ex: https://na30.salesforce.com/
UserName is the username used to login to the org
Password in order to login to the org
Consumer Secret and Consumer Key can be fetched from the connected app home page.
Once response is received one can parse the access token by invoking the parseresponse method and querying for access_token
response = crmtest.createaccount("Account Name", accessToken);
var fileId = crmtest.parseresponse(response,"id");
response = crmtest.insertChatterFeedFile("/Users/Documents/pdf.pdf", "File Name","Title", accessToken);
var fileId = crmtest.parseresponse(response,"id");
response = crmtest.fileavailability(fileId,"thumbnail", accessToken); var staus = crmtest.parseresponse(response, "status")
* After uploading the file in chatter feed it should spawn up rendition thread
* Status of rendition can be verified by parsing through the response for status key.
Note: Develop branch is the staging version whereas master is the release version.
7. **Send the generated thumbnail preview from file rendition to Microsoft's cognitive api and get image analytics**
```javascript
response = crmtest.analyzeimage(fileId, "<<Microsoft cognitive api key>>", accessToken);
console.log(response+'\n');
###Run crmtest in Amazon ec2 1 Follow the tutorial and set up an instance http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html 2 CrmTest has been verified on the Ubuntu version of Amazon ec2 3 Install the required Java binaries
**JDK**
sudo apt-get install openjdk-8-jdk
**JRE**
sudo apt-get install openjdk-8-jre
4 Already Node and npm will be installed in the instance, if not follow the steps at here
5 Once Node is installed execute the following
npm install java
npm install crmtest
6 That's it your amazon ec2 should be ready to run Salesforce e2e tests. --In the FAQ section some common issues and troubleshoot approaches have been mentioned--
###FAQs
I am getting invalid_grant when I am executing the oAuth method call, How to resolve it? A. The status invalid_grant depicts that the client machine from where you are trying to invoke the script is getting ip restricted by the org. To resolve this
Which user should I be in order to execute this node module A. Ideally you should be the system admin of the org.
I am getting an error NoClassDefFoundError: .... How to resolve it? A. Ideally all the jar files supported with this package should be in extracted state, but if it is not then you will get this error. To Troubleshoot this
###License This is an open source initiative supported by ISC license https://opensource.org/licenses/ISC
FAQs
CRM Test is a Node.js test framework which calls Salesforce Rest API and create simple node.js scripts to perform different actions in salesforce. Currently CrmTest has a support of running in Amazon ec2 cloud. In this ReadMe the focus is to run CrmTest i
The npm package crmtest receives a total of 0 weekly downloads. As such, crmtest popularity was classified as not popular.
We found that crmtest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.