• Tommy Woodhouse
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Tester
  • UNUM

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 3
    Replies

Hi everyone, 

My currrent situation is I have process-conf.xml, with multiple environments and multiple orgs eg. dev and QA
Then an entry for each Object(Account, Opportunity) that I may be inserting for Automation.
 

<bean id="insert-account-dev3" class="com.salesforce.dataloader.process.ProcessRunner"	singleton="false">
		<description>Insert Account Records used by automated regression
			tests.</description>
		<property name="name" value="insert-account-dev3" />
		<property name="configOverrideMap">
			<map>
				<entry key="sfdc.endpoint" value="https://test.salesforce.com" />
				<entry key="sfdc.username" value="xxxxxxxxxxxxxx@xxx.dev" />
				<entry key="sfdc.password"
					value="XXXXXXXXXXXXXXXXXX" />
				<entry key="dataAccess.type" value="csvRead" />
			</map>
		</property>
	</bean>
	
	<bean id="delete-account-dev3" class="com.salesforce.dataloader.process.ProcessRunner"	singleton="false">
		<description>Delete Account records used by automated regression
			tests.</description>
		<property name="name" value="delete-account-dev3" />
		<property name="configOverrideMap">
			<map>
				<entry key="sfdc.endpoint" value="https://test.salesforce.com" />
				<entry key="sfdc.username" value="xxxxxxxxxxxxxx@xxx.dev" />
				<entry key="sfdc.password"
					value="XXXXXXXXXXXXXXXXXX" />
				<entry key="dataAccess.type" value="csvRead" />
			</map>
		</property>
	</bean>
	
		<bean id="insert-account-QA" class="com.salesforce.dataloader.process.ProcessRunner"	singleton="false">
		<description>Insert Account Records used by automated regression
			tests.</description>
		<property name="name" value="insert-account-QA" />
		<property name="configOverrideMap">
			<map>
				<entry key="sfdc.endpoint" value="https://test.salesforce.com" />
				<entry key="sfdc.username" value="xxxxxxxxxxxxxx@xxx.QA" />
				<entry key="sfdc.password"
					value="XXXXXXXXXXXXXXXXXXXXX" />
				<entry key="dataAccess.type" value="csvRead" />
			</map>
		</property>
	</bean>
	
	<bean id="delete-account-QA" class="com.salesforce.dataloader.process.ProcessRunner"	singleton="false">
		<description>Delete Account records used by automated regression
			tests.</description>
		<property name="name" value="delete-account-QA" />
		<property name="configOverrideMap">
			<map>
				<entry key="sfdc.endpoint" value="https://test.salesforce.com" />
				<entry key="sfdc.username" value="xxxxxxxxxxxxxx@xxx.QA" />
				<entry key="sfdc.password"
					value="XXXXXXXXXXXXXXXXX" />
				<entry key="dataAccess.type" value="csvRead" />
			</map>
		</property>
	</bean>
	
	
	etc....
currently what I find at the moment to be a problem is if passwords expire or change, I will then have to change my process-conf in multiple places.

Is there anyway to Parameterize, it perhaps 
having a seperate file like so
 
devUserName=xxxxxxxxxxx@xxxx.dev
devToken=xxxxxxxxxxxxxxxxxx
qaUserName=xxxxxxxxxxx@xxxx.QA
qaToken=xxxxxxxxxxxxxx
etc.(Other Orgs)
Then having beans 
<bean id="insert-account-dev" class="com.salesforce.dataloader.process.ProcessRunner"	singleton="false">
		<description>Insert Account Records used by automated regression
			tests.</description>
		<property name="name" value="insert-account-dev" />
		<property name="configOverrideMap">
			<map>
				<entry key="sfdc.endpoint" value="https://test.salesforce.com" />
				<entry key="sfdc.username" value="devUserName" />
				<entry key="sfdc.password"
					value="devToken" />
				<entry key="dataAccess.type" value="csvRead" />
			</map>
		</property>
	</bean>

I've search frantically but havent seemed to find a solution to my problem and hopefully anyone might be able to help, thanks very much in advance

Hi All,

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 code I receive, and then progress with my tests.
Although the problem is, Everytime I run selenium scripts same accounts, even though I have done the verification and it then repeats the same process. When going to sign in
This had only started recently as of yesterday as we had tests running on jenkins everyday.

Just wondering If anyone ever encountered this, or is it a problem with my set up.


Thanks very much

I'm struggling with the custom lightning component on this part. I don't have much background coding and am having trouble finding resources to help me achieve coding the lightning component. If someone could help give me some framework code to create a custom lightning component to hold a URL or direct me to a resource that help break this down I'd be very appreciative.
 
When trying to add or edit an account team in lightning my users are getting an error " insufficient access rights on cross-reference id ".  If they switch to the classic view they are able to add and edit account team members.  Is anyone else having this issue? 
When trying to add or edit an account team in lightning my users are getting an error " insufficient access rights on cross-reference id ".  If they switch to the classic view they are able to add and edit account team members.  Is anyone else having this issue?