Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [test-automation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

How to write test class for the below class. I tried alot but it not covering [duplicate]

public class LeadAssignment { public Set<String> nullParamsSet; public LeadAssignment(){ nullParamsSet = new Set<String>(); for (NullParameters__c np : ...
0
votes
0answers
30 views

Automate Salesforce Lightning using Protractor Typescript Framework

I am trying to Automate Salesforce Lightning using Protractor Typescript Framework. I am not able to locate any lightning element after login. Anyone has any experience with this? #protractor #...
2
votes
1answer
47 views

Tests for Marketing Cloud Journey [closed]

I have a requirement to test marketing cloud functionality and the only testing information I've found concerns sending test emails. In my experience, if something goes wrong with any kind of drip ...
1
vote
1answer
101 views

How to pass multiple arguments to a test case using CumulusCI?

Problem statement: Unable to pass multiple variable values to my test case using CumulusCI command: cci task run robot... Sample Code: *** Settings *** Resource C:/Dev/myproject/robotframework/...
10
votes
1answer
225 views

Any way to get consistent test counts when parallel testing is used?

Moving to parallel testing has made one of our builds run 4x faster but the test result files returned from: sfdx force:apex:test:report after polling via: sfdx force:apex:test:run vary on every ...
3
votes
1answer
394 views

Is it impossible to automate testing on the Lightning interface?

To be more specific, I'm studying a use case where an automation would be preferable instead of just passing it to a user (for QA an acceptance). On the Lightning Experience interface, however, I've ...
1
vote
0answers
27 views

Salesforce Lightning WebPage Rendering

Im a Test Automation Engineer. I was analyzing an application built using Salesforce Lightning. I tried to identify an element (Image) in DOM using a tool. I observed that the tool identified the DOM ...
0
votes
1answer
971 views

How to bypass the verification code when run test case from Selenium script?

I want to run my test case with Selenium script. But whenever I login with selenium it aways ask for verification code. I know I can do it using the Profile Id, but I want to do it with code. ...
1
vote
1answer
79 views

Using ids to identify page elemensts for UI testing with Selenium

We are using Selenium to test our UI and need to be able to find a reliable way to identify the elements of the page we are working with. I am working with a button and have defined an id to be able ...
1
vote
0answers
157 views

Advantages of Cinnamon for UI test automation [closed]

We want to start automating our UI tests and have found Cinnamon that seems to be a better and more specific Salesforce testing tool. We want to use a testing tool for our managed package that has ...
12
votes
0answers
471 views

Testing Salesforce CPQ

I'm trying to create some meaningful tests for Salesforce CPQ. I'm trying to create Apex test classes and also UI tests with Selenium. The problem with the apex tests is that a lot of the important ...
1
vote
0answers
36 views

Big number of tests run 3 hours. How to decrease the time? [closed]

We've got a pretty big org, that has tens of millions of records and millions of apex code. The org has 1200 tests, that take 3 hours to run. 10 developers, that work in the org, all commit to 1 ...
1
vote
2answers
466 views

How to automate data import on full sandbox refresh

I am involved in doing QA in a stage full sandbox environment. I am interested in being able to populate the sandbox with a small amount of consistent (I cant rely on production data) test data. Is ...
7
votes
2answers
5k views

How to Identify Elements in Salesforce Lightning for Selenium

I am trying to automate Salesforce lightning using Selenium, but getting issues with identifying elements. Reason, its having dynamic IDs , and other attributes are either very long , or they are not ...
1
vote
1answer
139 views

What are most commonly used ways to do automated testing in Apex?

We are an ISV partner and looking for ways to automate our tests for our package. We are looking for something like Mockito for Java and have found ApexMocks library, which is built on top of Stub API....
1
vote
1answer
404 views

Identify candidates for Selenium test automation?

Salesforce already uses both unit tests & Selenium to automate out-of-the-box features. Our developers are covering their code with unit tests. In order to avoid redundancy regarding the above, ...
0
votes
1answer
248 views

Sender score and side effects releated to mailinator.com or maildrop.cc

I have looked around, however, I can't find accurate information if the Sender Score could be affected if I send hundreds of transactional emails daily to mailinator.com or maildrop.cc or any spam ...
1
vote
1answer
52 views

Execute tests thru API not showing up in test execution?

So I wrote a C# program that uses the Salesforce Tooling WSDL to call RunTestsRequest . I got that working the only problem I have is the the test results only show up in Apex Test Results and not ...
4
votes
1answer
306 views

Variable does not exist: fields [= getDescribe().fields]

A couple weeks ago, in the nightly test runs some tests started failing randomly (I guess it is related to the Summer'17 release.) I was not able to reproduce this, in console or Setup test runs they ...
3
votes
0answers
827 views

Selenium testing the Lightning Experience

I'm new to SalesForce and trying to use Selenium to test a page. When I check the "innerHTML" of a certain div (as selenium sees it), I see the following: <div class="test-id" data-aura-rendered-...
0
votes
2answers
251 views

Ghost Inspector test automation and varification Code

I have a Apex page that I need to test using ghost Inspector. I used chrome Extension to record my screen from the login section. The problem i am having is that ghost inspector is failing after login ...
0
votes
1answer
534 views

How to cover code related to Custom Metadata logic?

I have a custom metadata called Custom_Metadata__mdt. I have one custom boolean field in that custom metadata called Custom_Boolean_Field__c. I need to execute some logic only if value of ...
0
votes
1answer
650 views

How to cover a test class to test Account ID = Null [closed]

I need a help in covering the Account ID = Null please find my test class below. static testMethod void DevelopmentRequestFormControllerNegativeTest() { Test.startTest(); Profile p = [SELECT ...
1
vote
1answer
180 views

How to write a apex class for remove production setting while refreshing the sandbox from production

can you please suggest me how i automate the manual customization after refreshing the new sandbox from the production to remove some production setting through apex class. Noe a days in latest ...
0
votes
1answer
59 views

Regarding apex class to Test Class

I have A Given Sample Apex Code @HttpGet global static String doGet(){ RestRequest req = RestContext.request; RestResponse res = RestContext.response; try{ ...
2
votes
1answer
36 views

Regarding Apex Class q1

How do you declare a static method inside with another static method? Is it possible? Why are test class methods always static? Can anyone guide me?
2
votes
2answers
53 views

Regarding Apex class

While Executing Apex Class only Top Level Class should Be Declared as Static in Test Class,Why this Error is Occuring ,How to Avoid this Error? @isTest public class BusinessProfile1 { public void ...
1
vote
1answer
105 views

Issue in identifying objects in salesforce application functional flows

Currently I am doing a POC on salesforce automation using Serenity BDD framework with Selenium Webdriver. While automating ,the objects inside a iFrame is not working to complete end-end flow. I am ...
5
votes
5answers
4k views

Selenium Testing - Two Factor Authentication Problems

First time trying the forum, but today having trouble running selenium scripts with Salesforce. Everytime Im running a script locally I get a two step verification screen. I then have to input the ...
1
vote
3answers
976 views

Tools for automated qa testing

I was searching on the AppExchange for automated testing programs: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000000ptkwEAA https://appexchange.salesforce.com/listingDetail?...
3
votes
2answers
515 views

How to use Dependency Injection while testing

I've been trying to create a job that while working on my test class I should be able to pass 2 lists and the job work work on those lists but once I deploy my code, it should work using my real data. ...
0
votes
2answers
511 views

How do i Assert in this test class

I have a test class and when i gave the package for the security review the message was This rule identifies Apex Test Methods that do not Assert that the code behaves properly. Verifying that ...
0
votes
1answer
153 views

Test coverage in app exchange

I am uploading the salesforce app on app exchange but while uploading it is showing error in test class but in the developer console it is running perfectly and it showing 87% code coverage Error is (...
0
votes
2answers
98 views

Test Class for triggers

I am new to salesforce and i am writing a test class for the trigger. Can any one tell me how to write a test class for the trigger below trigger CloseParentCommunication on ...
8
votes
1answer
5k views

What causes REQUEST_RUNNING_TOO_LONG test errors?

For most of our clients we've got a basic ant script that does a test deploy every night to make sure all the tests pass. Occassionally, we'll get a REQUEST_RUNNING_TOO_LONG error. What's strange is ...
1
vote
1answer
466 views

Populating Jasmine Angular controller variable before test starts

I am trying to run some tests for some basic angular code that I have written. You can refer to this post for controller code details - https://wordpress.com/read/post/feed/37884742/822834869 But ...
3
votes
1answer
43 views

Capture data during test execution

We have huge number of test classes and we are trying to automate capturing information about existing test classes. Data we are trying to capture is around governer limits (e.g. number of soql ...
-2
votes
1answer
3k views

Constructor not defined error in batch class

I am testing the scheduled batch class in salesforce, during which i am getting the below error : " Error: Compile Error: Constructor not defined: [LicenseOptimizer_BatchClass].(String) at line ...