Skip to main content

Questions tagged [test-automation]

The tag has no usage guidance.

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

CumulusCI keyword for Upserting Data in case of External ID

Do we have any CumulusCI keyword for Upserting Data in case of External ID like we have for Insert, Get update and delete in CumulusCI Robot Framework Keywords Can we use existing keyword for ...
Pronit Agrawal's user avatar
0 votes
0 answers
58 views

Automted UI Test with UTAM and Webdriver - UTAM Generator effort to create JSON Page Objects

Introduction UI Test Automation Model (UTAM) is an open source solution built by Salesforce that lets you run E2E tests on any kind of app (source) The picture below is taken from this blog post I ...
surfmuggle's user avatar
0 votes
0 answers
28 views

Salesforce monorail org when opened using selenium automation shows "Not Secure" Site

The salesforce Spring'24 monorail org when logged through browser works fine. But, if opened via selenium webDriver connection shows "Not Secure" message in the URL. For all other other orgs ...
Ravi Bodla's user avatar
1 vote
1 answer
86 views

How do UTAM Webdriver Jasmine work together? What is the layer architecture?

The article UTAM - Write UI Test contains these bits Use assertions ... to ensure that your test returns expected results. Use any assertion library of choice, such as Node.js assertions. Run tests ...
surfmuggle's user avatar
-1 votes
1 answer
45 views

How to Create a Test Suite in Salesforce Using ANT Without Using the Developer Console?

I'm looking to set up a comprehensive test suite in Salesforce using ANT, and I want to perform all the tasks without relying on the Developer Console. Can someone provide guidance or a step-by-step ...
Emanuele Alfano's user avatar
0 votes
0 answers
121 views

Test method attempts Email Alert from Flow and fails with NO_SINGLE_MAIL_PERMISSION in sandbox

We have a Flow that sends an Email Alert. We have a test method that unintentionally exercises that flow. The test method fails. I know already that NO_SINGLE_MAIL_PERMISSION is thrown because our ...
twamley's user avatar
  • 785
0 votes
0 answers
54 views

Automation Studio next run set less hour than starting time

I scehduled Automation that activte today 3pm And when I complete this set and check it, in automation, the next run is today 2pm. Is it right? I want to fix it.
Nicole Jung's user avatar
0 votes
3 answers
100 views

How to automate permission set assignment checking?

I have an excel workbook with multiple sheets with the names of different countries and in each of these sheets there are permissions sets for each profiles, there are 6 such profiles. Like Canada ...
Sri Harish's user avatar
1 vote
0 answers
311 views

What am I missing working with UTAM and creating a record for an object utilizing Dynamic Forms?

I have been fighting this for a bit of time and feel like I must be missing something painfully obvious. To set the stage I am starting to explore utilizing WebDriverIO with UTAM to automate some e2e ...
Michael Schirger's user avatar
0 votes
0 answers
89 views

Deploying Record IDs in Flow Tests

I have a record triggered flow and wanted to try the new Flow Test feature. I implemented a test and when I downloaded the metadata I noticed that the Record Type ID is hard coded. When I deploy these ...
Samantha Catania's user avatar
3 votes
1 answer
880 views

How to create a no-code test for a Asynchronous Path in Flow?

I'm trying to create some tests for Flows using the no-code test feature within Flow builder. According to this article, the ability to add tests for scheduled paths was rolled out in Winter '23, but ...
DrElyk's user avatar
  • 43
2 votes
1 answer
552 views

Use SessionId as Cookie to authenticate in browser automation tests

I want to streamline some browser automation scripts and bypass logging into the sandbox via the standard login page (with login and password). Additionally, our automation scripts authenticate in the ...
Oleg Berezhnoy's user avatar
-1 votes
1 answer
974 views

Does running all tests in an org impact actual real functionality? Should I not run all tests in production daily?

For years I was under the assumption that running all tests in an org does not impact actual functionality. At most, it may somewhat impact performance... Every night I run all tests in our UAT ...
Ryan Werner's user avatar
5 votes
0 answers
123 views

Stress-test and prove limit-scalability of Asynchronous code

Giving my question a proper title was hard as I am only partially sure what I am actually looking for - solution-wise. In our fully native (no AWS or Functions backend) Managed Package many ...
Robert Sösemann's user avatar
1 vote
0 answers
141 views

New value on the record's field is reverted to the old value when updating via Salesforce SOAP API

I'm updating some test Contacts' emails in a test automation script. I'm using generated Enterprise API Java "stubs", so the enterpriseConnection object is for SOAP API interactions with my ...
Oleg Berezhnoy's user avatar
2 votes
1 answer
742 views

When running tests during deployment, are tests ran in parallel?

Specifically, I deploy to my org using a command like this: sfdx force:source:deploy -u=<accessToken> --sourcepath ./src/main --testlevel RunLocalTests --json --wait 120 When doing this, do the ...
dquijada's user avatar
  • 125
0 votes
1 answer
6k views

Check if a checkbox is ticked in a Screen flow

Hi all I am using a screen flow and here if all the checkboxes I have added in a screen is checked then a field update should happen in an object. Here I have added all the checkboxes in the screen. ...
JK123's user avatar
  • 69
0 votes
1 answer
2k views

Cypress as UI test automation tool for Salesforce [closed]

Does anyone have experience using Cypress as a UI test automation tool for a Salesforce based project? If so, what are the drawbacks, constraints or implications, e.g. regarding login or possible ...
Sebastiano Schwarz's user avatar
0 votes
1 answer
114 views

Is there any solution for easy maintenance of Selenium automation scripts for testing Salesforce?

Whenever there is salesforce upgrade, the Xpaths of lot of web elements get effected. This causes us to maintain them. Is there any better solution to this problem? I have found a solution for input ...
Venkata pratheek reddy chavva's user avatar
0 votes
3 answers
2k views

Could I call the same method many times in the same test?

Is a bad practice call the same method many times in the same test method? Example: @isTest static void testSelectDevice{ List <Product2> device1 = new List<Product2>(); List <...
Cline's user avatar
  • 143
1 vote
1 answer
217 views

Can we automate Security Token reset for automated testing? [closed]

We have automated tests that run on our sandboxes (not scratch org but traditional sandbox) prior to each release to production. This testing framework includes the generation and use of Salesforce ...
smohyee's user avatar
  • 3,846
0 votes
0 answers
35 views

Get Test Apex Classes of a specific package in Salesforce [duplicate]

I am trying to import test suites name/id from Salesforce. Since Salesforce may include a large number of test suites - we would like to allow the user to import test suites from a specific package/...
Ashwani's user avatar
  • 13
0 votes
0 answers
394 views

Testing queueable method which relies on jobId

I've updated my code to do some logic along these lines if no job has been created, create a job using System.enqueueJob(QC) and store it's job id. take a bunch of data and store it in a custom ...
J. Larson's user avatar
0 votes
1 answer
179 views

Salesforce lightning components qa automation [closed]

I am new to Salesforce testing, we have an automation suite written with protractor currently and its working fine with classic version of sf. However now most of the new requests are towards ...
SeleniumBeginner's user avatar
1 vote
0 answers
43 views

Not able to find elements of a sfdc login screen using UIautomater

We have created native Android mobile App using 'com.salesforce.mobilesdk:SalesforceSDK:8.+' mobile sdk for the login functionality in the app. We use the Community url for login. We are trying to ...
Balashankar's user avatar
0 votes
1 answer
3k views

Getting Malformed Query error when hitting SOQL using Rest API

I have a requirement to fetch query results of a SOQL query using REST API. Even after encoding the SOQL search I keep on getting Malformed Query error. I am so far unable to find a reason to it. This ...
Kovid Mehta's user avatar
0 votes
0 answers
44 views

How can I get a list of fields that I added to one form in Salesforce?

I'm pretty new to Salesforce and I'm wondering if there is a way to get all the fields and HTML elements that I'm using with those forms to do some future testing with cypress and selenium. Does ...
Hvaandres's user avatar
  • 111
1 vote
0 answers
71 views

Selectors for automating the Salesforce Mobile Login Screen [closed]

Is there a JS or WDIO library or example anywhere for the best way to automate the Salesforce Mobile APP Logon Page. My dev team are placing clear identifiers on all the bespoke screens of the app we ...
Richard C's user avatar
  • 111
1 vote
0 answers
259 views

CircleCI, re-run tests that failed in parallel mode during build

note: I'm stuck in an org-centric world, so CircleCI is setup w/my dev sandbox, not scratch orgs. Recently, I set up a CircleCI build to run my sandbox orgs tests w/RunLocalTests on each pull request. ...
torpy's user avatar
  • 355
0 votes
1 answer
183 views

Test apex class salesforce coverage code

i have a test class for salesforce @IsTest public class JsonGCloudApiApex_TEST { // This test method should give 100% coveragex static testMethod void testParse() { ...
pedroooo's user avatar
  • 125
0 votes
1 answer
296 views

Unable to invoke async test job: Subscriber handshake failed due to a socket timeout

there is a known issue SFDX- when using in JENKINS :sfdx force:apex:test:run: An ERROR: Unable to invoke async test job: Subscriber handshake failed due to a socket timeout on trailblazer site with no ...
hlopetz's user avatar
  • 247
0 votes
0 answers
194 views

What is the mechanism Lightning uses to avoid loading tabs in background?

I'm working on UI test automation and noticed Lightning avoids loading tabs in background. You can test yourself - cmd + click on some records and wait - then open new tab and it's only then ...
dzh's user avatar
  • 4,165
2 votes
1 answer
256 views

UNABLE_TO_LOCK_ROW error while running salesforce apex test on circleci

I'm getting UNABLE_TO_LOCK_ROW while running the apex test on CircleCI How can I avoid the deadlock while running tests?This is due to parallel execution of test(Not sure about this). Do We have ...
Pronit Agrawal's user avatar
2 votes
2 answers
213 views

Salesforce automated testing techniques [closed]

I am a Salesforce QA tester and as all my testing has been manual up to this point, I am interested to learn how to automate some of the new upcoming features and possibly existing processes on ...
Iain's user avatar
  • 21
0 votes
0 answers
65 views

Possible to keep (or equivalent of) a public static variable across test classes in an async test run?

I have test methods I want to use from test class A in test class B, in an async test run if test A runs before Test B I don't want to invoke the test A methods in test B because they already ran and ...
Max Goldfarb's user avatar
0 votes
2 answers
608 views

How to Test the Performance of Rest web services in Salesforce( at the same time there is multi requests), Is there any tool?

lets say if 10 users hitting web service at same time(concurrency),then how we can check performance. Please share your Ideas Thanks in Advance..
purna's user avatar
  • 77
0 votes
1 answer
319 views

Can Performance Testing possible in a Partial Copy sandbox?

Salesforce suggests Performance Testing only in Full Copy sandbox. Is there any reason why it cant be done in a Partial Copy sandbox?
Vignesh V's user avatar
  • 137
2 votes
0 answers
438 views

Lighting web component UI testing with robotframework-selenium: Not able to interact with LWC element

I am trying to automate a page with LWC, But due to shadow DOM, I am able to interact with element. Is there a way where we can interact with the element.
Pronit Agrawal's user avatar
1 vote
2 answers
1k views

Selenium WebDriver and Developer Console

So I'm automating some different things with Selenium WebDriver in one of our orgs. One of the more tricky ones has been interacting with the Execute Anonymous window inside of the developer console. ...
trebleCode's user avatar
3 votes
0 answers
31 views

Any way to re-enable first time login screen?

Doing some automation testing, and wondering if there is any way to re-enable the screen that shows up the first time a user logs into a sandbox asking you to register your phone number or click 'I ...
trebleCode's user avatar
2 votes
1 answer
281 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 ...
Cleverlemming's user avatar
1 vote
1 answer
4k 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/...
vish4444's user avatar
13 votes
2 answers
1k 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 ...
Keith C's user avatar
  • 136k
4 votes
3 answers
2k 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 ...
Renato Oliveira's user avatar
1 vote
0 answers
40 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 ...
Subbu's user avatar
  • 11
0 votes
2 answers
5k 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. ...
SalesforceFolks's user avatar
1 vote
1 answer
162 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 ...
Jorjani's user avatar
  • 2,222
1 vote
0 answers
233 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 ...
Jorjani's user avatar
  • 2,222
12 votes
1 answer
879 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 ...
brezotom's user avatar
  • 1,087
1 vote
0 answers
96 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 ...
EvAzi's user avatar
  • 1,051