function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
1.Can I create a virtual user recod and profile in my test class.
Regards,
Manjunath
Hi Manjunath,
You can create an user but you need to query the required profile according to the requirement..!
Profile profileId = [SELECT Id FROM Profile WHERE Name = 'Standard User' LIMIT 1]; User usr = new User(LastName = 'LIVESTON', FirstName='JASON', Alias = 'jliv', Email = 'jason.liveston@asdf.com', Username = 'jason.liveston@asdf.com', ProfileId = profileId.id, TimeZoneSidKey = 'GMT', LanguageLocaleKey = 'en_US', EmailEncodingKey = 'UTF-8', LocaleSidKey = 'en_US' );
Hi Manjunath,
You can create an user but you need to query the required profile according to the requirement..!
All Answers
Hi Manjunath,
You can create an user but you need to query the required profile according to the requirement..!
Thanks.