PA,OM Test Scripts(Scenario Testing)
Hi All,
Gudday.My frnd has a task at hand and he needs to prepare Test Scripts(Scneario Testing) for PA and OM..Kindly provide some directions and share templates ,should you be having one.Appreciate your attention into this subject
No Worries
Karthik
Hi,
1.) As per the Blue print document and the configuration done make the list of activities for Unit testing for PA and OM module seperately and integration testing.
2.) For eg:- Hiring Process - List down the Tcode and different ITypes and mandatory feild with significance .
3.) Template can be a word file with information as
Unit Test Scenario
SCENARIO: OWNER: ESG
BUSINESS CASE: SAP-HR.
STATUS:
DESCRIPTION: .:
EXPECTED RESULT RUN DATE: 17.02.2008
SETUP DATA
DATA OBJECT VALUE/CODE DESCRIPTION COMMENTS AND NOTES
TRANSACTIONAL STEPS No.
BUSINESS PROCESS STEPS / BPP NUMBER
TRANS. CODE
INPUT DATA / SPECIAL INFORMATION
EXPECTED RESULTS
OUTPUT DATA / RESULT
TESTER / TEAM OK /
ERROR
Regards
Hemant V. Mahale
Edited by: Hemant Mahale on Feb 24, 2009 11:39 AM
Similar Messages
-
Urgent need for AP and PO test scripts/scenarios and training user manuals
Hi There,
Can anyone send me test scripts/scenarios and training user manuals for AP and PO
Please send me the docs as soon as possible on [email protected]
I will really appreciate your help.
Regards
KushDear
this topics must be included in the testing scenario
1-Enter Supplier Data Enter information for a given supplier, including supplier sites/addresses
2-Create Invoice Batch: Enter information for Invoice Batch header
3-Create a Standard Invoice: Enter information for a standard invoice in an invoice batch
4-Invoice Distribution: Enter information details of a selected invoice
5-Schedule Payment Create Payment Schedule
6-Create a Credit Memo: Enter information to create a credit memo
7-Create Employee Exp:Enter information for an Employee Expense report
8:Validate an Invoice: Validate an Invoice
9-Account an Invoice: Create Accounting Entries for an Invoice
10-Create a Quick Check: Enter data to create a Quick Payment
11-Select Invoices for Payment:Enter data to create a preliminary list of invoices to pay, review the list, and do some changes.
12-Format and Print a Payment Batch: Perform tasks required to Format a payment batch
13-Confirm a Payment Batch:Perform tasks required to Confirm a payment batch
14-Transfer to General Ledger -
HI guru's,
Iam new to MM any one can send me MM Test Script SCript Scenarios.. I want to do Unit Testing and Integrating Testing.....plz send me docuemnts to this id....janab4u(at the rate of )gmail
regards
JKhi,
It depends upon the business process.
Example : you are checking a P.O for GRN
Test Script:
1) Go to MIGO
2) enter the P.O no:
3) enter the details.
4) Check ,it green button is appearing.
5) post the document.
Enter the Results: PASS and enter the Document
If you observing any error like for eg G/l account is not maintained
Result : FAIL
do the correct action and test again
G.Ganesh Kumar -
Since upgrading I my system has virtually come to a standstill. Lengthy opening of FF, sudden closing of multi sites, constant stop script scenarios, constant hangups, and over all extremely long processing times.
Since upgrading I my system has virtually come to a standstill. Lengthy opening of FF, sudden closing of multi sites, constant stop script scenarios, constant hangups, and over all extremely long processing times.
-
I recently (with the help of SDN Forums members) completed an installation of an ECC 5.0 IDES instance. After logging in and verifying that the IDES master data is present as expected, I started looking for the documentation that described how that master data can be used to show off various activities (e.g. demo scenarios).
I have searched extensively on Service Marketplace, help.sap.com, and SDN for this information but am unable to find it. Can anyone help me locate these scripts?Hello Michael,
it is not so wrong. I think <a href="http://help.sap.com/saphelp_46c/helpdata/en/af/fc4f35dfe82578e10000009b38f839/frameset.htm">IDES - The SAP Model Company</a> can help you.
Regards
Gregor -
Hi,
I would like to practice scripting (e-scripting) .Could you please let me know where can i get sample scenarios to practice e-scripting.
As browser script is like java script ,first i would like to start with java script,to practice java script ,what software i need to download from net.
Please let me know if my approach is wrong.
Thnak you,Since the others have pointed you to resources for eScript/BrowserScript(JavaScript) I tough I should answer your last question.
user578578 wrote:
Please let me know if my approach is wrong. You should look at scripting as your last option.
Look at normal configuration first (e.g. new joins, MVL(Multi Value Links)/MVF(Multi Value Fields), calculated fields)
Look at User properties (Applet/Business Component/Field/Integration Object/..)
Loot at Run Time Events
Look at Workflows
Look at Validation Manager
Look at Haley business Rules
If you can't solve it with any of those.
The look at a scripting solution.
Axel -
Need Test Scripts & User Training Manuals for AP & PO modules
Hi There,
f you have any docs.. for AP and PO - test scripts/scenarios and training user manuals.
Please send me the docs as soon as possible
I will really appreciate your helpGo to www.erpschools.com then on the left side menu click user guides and select 11i or R12. It will take you directly to the page where you can find all user guides.
Thanks
Prudhvi
www.erpschools.com
www.oracleschools.com -
What are the Roles and Responsibilities of SAP Testing Consultant?
Hello,
i want to know about The Roles and Responsibility of SAP Testing Consultant,,pls anybody guide me Real time scenarios.
regards,
BalaramUnderstanding the business scenarios
Organization Structure to incorporate the tune of the script.
Preparation of test scripts
Execute and record results to see if it is fine before going to approval.
Make changes to your test script if required.
What is Test Script (Scenario Testing)
Header Data
Step in Process
Transaction Code / Program (FB60)
Menu Path
Description
Field Data and actions to complete
Expected Results
Actual Results
TPR
Closing Period
F.19 Clearing GR/IR Account
F.13 Adjustments GR/IR Account
Using of these above two accounts will help us in clearing the balances and adjustments to those respective clearing accounts so that the GR/IR account will be zero balance and the balances will appear in respective reconciliation accounts accordingly the balances will be carried forwarded to next fiscal year.
GR/IR Clears the following Documents
GL Document
Customer Documents
Vendor Documents
Assignment Field is important in any document (ZUONR), Amount (DMBTR)
Foreign Currency Valuation
Lowest Value Method, If we are in loss then only we will account for it.
GL Accounts which are important in Testing
Enjoy Transaction - FB50
Normal Transaction - FB01
Document Parking - FV50
Post with Clearing - F-04
Incoming Payment - F-06
Outgoing Payment - F-07
Document Related
Reset Cleared Items - FBRA
Parking Document Posting - FBVO
Reversal Documents - F-14
Company Code Clearing A/C
(Trial Balance purposes) reversal - (FBUB)
Clearing Account
Partial clearing Invoice - 100 - Open Item
Paid - 70 - Open Item
Balance - 30
In Partial Clearing you can see 100 and 70 are cleared line items and 30 as balance and if it is in Residual you can only 30 as balance as it creates new line item and you canu2019t see the other cleared line items.
As no company will use residual clearing as it affects on ageing reports.
Open Items in Foreign Currency in all Modules GL/AP/AR - F.05
Master Data
Company Code
Currency
Only Balances in local currencies
Reconciliation Account Type
Year End Scripts
Re Grouping Receivables / Payables - (F101)
Bad Debts Provisions u2013 Scripts
We assume that the customer has not paid at the end of the year you doubt whether this receivable will ever be paid. So you make a transfer posting for the receivables to an account for individual value adjustments using special GL Indicator E and Transaction Code F-21
Carry forward Balances
Sub Ledgers and General Ledger balances to be forwarded to next Fiscal Year
Accounts Payables
Vendor Down Payments
Invoice
Parking
Reversal
Outgoing Payments
Automatic Clearing
Manual Clearing
Advance (Down Payment)
Post with Clearing
Post without Clearing
Reset Clearing
Carry forward
Regrouping
Foreign Currency Valuations
Accounts Receivables
Customer Down Payments
Invoice
Parking
Reversal
Incoming Payments
Manual Clearing
Advance (Down Payment)
Post with Clearing
Post without Clearing
Reset Clearing
Carry forward
Regrouping
Foreign Currency Valuations
Other than that, it is important to know the following:
Unit Testing
When you test every single document is called unit testing.
String Testing
One transaction full activity is called string testing . For example Vendor invoice, goods received and vendor payment.
Integration Testing
It is purely with other modules and we have to check whether the FI testing is working with other related modules or not.
Regression Testing
Testing for whole database. Bring all the data into another server and do the testing is called regression.
UAT
When we test any particular document with the user and if it is ok immediately we have to take the signature on the document, which is signed off and can be forwarded to the immediate boss. There are some steps to be followed when we go for user acceptance testing.
Transaction u2013 Script Writing u2013 Expected Results u2013 Compare with Actual Results
TPR (Transaction Problem Reporting)
While doing the user acceptance testing if we get any problems then there are some methodologies to be followed according to the companyu2019s policy and normally as a tester we always need to write on Test Script itself.
Hope this helps you.
Regards,
Rakesh -
Can any body send me SAP testing material for MM module
sandeepHi friends,
Can any body please tell how can we test the SAP MM module with writing test scripts and test plans?
please let me know how to write the sample test scripts and test plans for MM Module
Also send me a sample test scripts scenario with steps?
Regards
sandeep -
Usability Testing : My #1 "Value-Add" at ASUG Annual Conference & SAPPHIRE
There are dozens of reasons to go to ASUG Annual Conference & SAPPHIRE every year -SAP Education, Networking, Best-Practices and "Real World" SAP Customer Stories and Lessons Learned can easily fill your day...BUT my #1 "Value-Add" every year is to carve-out some time to take part in SAP Usability Testing sessions.
It is a great opportunity to get "Hands-On" with Future-Releases of SAP Products, and help guide the User Experience of SAP tools.
SAP Usability Testing sessions run for 60-minutes, and need to be booked in Advance, as you need to sign some non-disclosure and feedback documents.
You are partnered-up with another Customer/Client of SAP and walked through some different scripted-scenarios (eg. Enter a Travel Approval Request, Run a Report for your Division, etc) based on the Module that you are looking at. There are a couple of SAP staff with you - and they are also recording your Mouse-Clicks, Screen-Captures and everything you say as you walk-through the process.
This Feedback process is REAL - and it actually works to improve future SAP tools. Suggestions that we made about SAP Business Object Central Management Console in 2011, became the SAP BOBJ BI 4.1 System Configuration Wizard in 2013.
Sometimes there are "follow-up" calls (or web sessions) after the Conference where the team will show you how the processes have been changed since your SAP Usability Testing session.
The Full-List of SAP Usability Testing sessions in Orlando is listed below...Sign-up Early as Spaces are LIMITED.
Topic Overview:
1. Ariba® Network Spot Buy
2. BI Reporting and Analytics App for Mobile
3. Common Visualization Object Modeler, Business Charting Library: Business Data Visualization
4. Rounds Management on Smart Glasses
5. SAP Design and Prototyping Tools
6. SAP Fiori® Apps for the Contract Account Manager
7. SAP Fiori Next Generation Concepts
8. SAP Fiori Object Page and Draft Handling
9. SAP Fiori Overview Page
10. SAP Fiori Wizard and Notifications Concept
11. SAP Mobile Place (Cloud Solution)
12. SAP Multichannel Foundation for Utilities with Simplified and Engaging Out-of-the-Box B2C Apps
13. SAP S/4HANA – Runtime Authoring for SAP S/4HANA
14. SAP S/4HANA Social Media Integration – Social Timeline for SAP S/4HANA applications
15. SAP Screen Personas 3.0
16. SAP Simple Finance – Post / Analyze Journal Entries or Financial Statement in Accounting
17. SAP Simple Finance – Simple Payments
18. SAP Smart Business for the Internet of Things
19. SuccessFactors® Employee Central – Global BenefitsDue to a copy/paste glitch, some necessary spaces have inadvertently been removed. If I could fix this, I would.
-
Question regd. SAP Testing
Hello everybody,
I would like to know more about the following testing activities carried out by an SAP SD Functional consultant (or any SAP Consultant) / SAP Tester. Please let me know what the following activities mean and how they are performed... any tools required for these activities?. Kindly clarify.
1) What is bug tracking/issue management systems in SAP and how is it done. Any tools required and if so, what are they?..can bug tracking be done in sap in spreadsheets etc. without using tools?.
2) What is scripting with respect to sap testing and how is it done. where are the scripts written and executed?.
3) How is performance testing done in sap?. Is loadrunner mandatorily used or can performance testing be done without loadrunner?... can performance testing be done manually?..
4) How are test scripts written in sap?... Where are they written and executed?..
5) how is test data created?... please explain in detail.
6) What are the automated testing tools used in sap testing?
7) How is volume testing done in sap?... any tool required?..
8) I have come across few things on the internet like Test Workbench, ECATT and CATT... what are these tools used for in sap testing...and is it mandatory to use these tools in sap testing for those particular tests or what is the alternative?.
Thanks.
KSS.Hi,
You can check the following link and you will get lot of your queries solved.
http://www.sap-img.com/general/role-of-sap-consultant-in-testing.htm
Following are the high level roles of testing consultants -
Prepare Test Scripts
Validate Existing Test Scripts
Understand the process for which a test script is created
Create test data basing on the test script specifications
Document the test results
Highlight the failure of the test scripts to the concerned module leads (FI, MM, SD,.........)
If any interfaces are connected to SAP, check with the interface owners if the data sent from SAP is received in the correct format.
Secure sign off the test script results from the client
Understanding the business scenarios
Organization Structure to incorporate the tune of the script.
Preparation of test scripts
Execute and record results to see if it is fine before going to approval.
Make changes to your test script if required.
One example:
What is Test Script (Scenario Testing)
Header Data
Step in Process
Transaction Code / Program (FB60)
Menu Path
Description
Field Data and actions to complete
Expected Results
Actual Results
TPR
Closing Period
F.19 Clearing GR/IR Account
F.13 Adjustments GR/IR Account
Using of these above two accounts will help us in clearing the balances and adjustments to those respective clearing accounts so that the GR/IR account will be zero balance and the balances will appear in respective reconciliation accounts accordingly the balances will be carried forwarded to next fiscal year.
GR/IR Clears the following Documents
GL Document
Customer Documents
Vendor Documents
Assignment Field is important in any document (ZUONR), Amount (DMBTR)
Foreign Currency Valuation
Lowest Value Method, If we are in loss then only we will account for it.
GL Accounts which are important in Testing
Enjoy Transaction - FB50
Normal Transaction - FB01
Document Parking - FV50
Post with Clearing - F-04
Incoming Payment - F-06
Outgoing Payment - F-07
Document Related
Reset Cleared Items - FBRA
Parking Document Posting - FBVO
Reversal Documents - F-14
Company Code Clearing A/C
(Trial Balance purposes) reversal - (FBUB)
Clearing Account
Partial clearing Invoice - 100 - Open Item
Paid - 70 - Open Item
Balance - 30
In Partial Clearing you can see 100 and 70 are cleared line items and 30 as balance and if it is in Residual you can only 30 as balance as it creates new line item and you canu2019t see the other cleared line items.
As no company will use residual clearing as it affects on ageing reports.
Open Items in Foreign Currency in all Modules GL/AP/AR - F.05
Master Data
Company Code
Currency
Only Balances in local currencies
Reconciliation Account Type
Year End Scripts
Re Grouping Receivables / Payables - (F101)
Bad Debts Provisions u2013 Scripts
We assume that the customer has not paid at the end of the year you doubt whether this receivable will ever be paid. So you make a transfer posting for the receivables to an account for individual value adjustments using special GL Indicator E and Transaction Code F-21
Carry forward Balances
Sub Ledgers and General Ledger balances to be forwarded to next Fiscal Year
Accounts Payables
Vendor Down Payments
Invoice
Parking
Reversal
Outgoing Payments
Automatic Clearing
Manual Clearing
Advance (Down Payment)
Post with Clearing
Post without Clearing
Reset Clearing
Carry forward
Regrouping
Foreign Currency Valuations
Accounts Receivables
Customer Down Payments
Invoice
Parking
Reversal
Incoming Payments
Manual Clearing
Advance (Down Payment)
Post with Clearing
Post without Clearing
Reset Clearing
Carry forward
Regrouping
Foreign Currency Valuations
Other than that, it is important to know the following:
Unit Testing
When you test every single document is called unit testing.
String Testing
One transaction full activity is called string testing . For example Vendor invoice, goods received and vendor payment.
Integration Testing
It is purely with other modules and we have to check whether the FI testing is working with other related modules or not.
Regression Testing
Testing for whole database. Bring all the data into another server and do the testing is called regression.
UAT
When we test any particular document with the user and if it is ok immediately we have to take the signature on the document, which is signed off and can be forwarded to the immediate boss. There are some steps to be followed when we go for user acceptance testing.
Transaction u2013 Script Writing u2013 Expected Results u2013 Compare with Actual Results
TPR (Transaction Problem Reporting)
While doing the user acceptance testing if we get any problems then there are some methodologies to be followed according to the companyu2019s policy and normally as a tester we always need to write on Test Script itself.
Hope this helps you.
Regards,
Rakesh -
Tasks not opening in UWL through LR script
Hi,
I am trying to script a scenario in SAP NW Portal. The scripted scenario looks like:
1) VUser.init() section: A user logs in to the portal.
2) VUser.run() section: The User performs few steps in the portal (UWL - WD Java).
3) VUser.end() section: The user logs out.
The intention is to achieve the following scenario during its run time:
A user logs in, then perform actions defined in VUser.action() section in iterations and at last of the load test, the user logs out.
Issue: The first iteration is always happening successfully but the second iteration always fails.
Please help me in resolving the issue.
Thanks & regards,
Ankit
PS:
If I put all the transaction in VUser.action(), all the iterations pass.HI Arvind
Try a piece of code to get all the tasks in your task list.
QueryResult result = itemManager.getItemsForItemType(uwlContext,ItemType.UWL_ITEM_TASK, null, null);
SO in result, you'll get all the task available.
Thanks
Puneet -
Script new-page continuation.
Dear all,
In my script scenario i need to bring all the customers for a particular company.In my main window i am printing the customer name1,name2,street,city,country all details line by line.
My query here is if in a page1 name1,name2, street comes in a page and remaining city, country carry overs to next page2.
Its should not happen if in case of carry over of address to next page occurs it should come in a new fresh page.
How can i call a new page here in this case.
Hope i am clear wit my query.
Regards,
Rakesh.Hi,
U can use the IF Condition in which ever window u want based on your data.
Like
/: IF <data> EQ <wa-data>
FIRST PAGE
/: ELSE
OTHER PAGE
/: ENDIF
Thanks,
amit
Edited by: amit kumar on Apr 8, 2009 10:38 AM -
EclipseLink Error looking up external Transaction resource under JNDI name
I want to verify my EJB 3.0 setup for a Java EE project to be deployed on Weblogic 10.3.3 (11gR2) - however when trying to run the JUnit test from eclipse I keep getting the following exception :
Exception [EclipseLink-23004] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.TransactionException
Exception Description: Error obtaining the Transaction Manager
Internal Exception: Exception [EclipseLink-23001] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.TransactionException
Exception Description: Error looking up external Transaction resource under JNDI name [weblogic.transaction.TransactionManager]
Internal Exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at org.eclipse.persistence.exceptions.TransactionException.errorObtainingTransactionManager(TransactionException.java:125)
at org.eclipse.persistence.transaction.JTATransactionController.<init>(JTATransactionController.java:69)
at org.eclipse.persistence.transaction.wls.WebLogicTransactionController.<init>(WebLogicTransactionController.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.newInstanceFromClass(PrivilegedAccessHelper.java:354)
at org.eclipse.persistence.platform.server.ServerPlatformBase.initializeExternalTransactionController(ServerPlatformBase.java:247)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.preConnectDatasource(DatabaseSessionImpl.java:656)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:581)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228)
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:369)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:151)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:207)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:195)
at com.junit.ejb.orclperf.EjbValidation.setUp(EjbValidation.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: Exception [EclipseLink-23001] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.TransactionException
Exception Description: Error looking up external Transaction resource under JNDI name [weblogic.transaction.TransactionManager]
Internal Exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at org.eclipse.persistence.exceptions.TransactionException.jndiLookupException(TransactionException.java:47)
at org.eclipse.persistence.transaction.AbstractTransactionController.jndiLookup(AbstractTransactionController.java:434)
at org.eclipse.persistence.transaction.wls.WebLogicTransactionController.acquireTransactionManager(WebLogicTransactionController.java:35)
at org.eclipse.persistence.transaction.JTATransactionController.<init>(JTATransactionController.java:67)
... 40 more
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.eclipse.persistence.transaction.AbstractTransactionController.jndiLookup(AbstractTransactionController.java:432)
... 42 more
[EL Finest]: 2010-05-23 21:29:36.629--ServerSession(30149247)--Thread(Thread[main,5,main])--End deploying Persistence Unit PERFEJB; session file:/C:/Users/owner/workspace/PERFEJB/build/classes/_PERFEJB; state Deployed; factoryCount 2The code for the JUnit test is the following:
package com.junit.ejb.orclperf;
import static org.junit.Assert.*;
import java.util.Calendar;
import java.util.Date;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
import org.junit.Before;
import org.junit.Test;
import eJBgetSet.Attachment;
import eJBgetSet.Request;
public class EjbValidation {
private static final String PERSISTENCE_UNIT_NAME="PERFEJB";
private EntityManagerFactory factory;
@Before
public void setUp() throws Exception {
factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
EntityManager em = factory.createEntityManager();
em.getTransaction().begin();
Query q = em.createQuery("select r from Request r");
Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_MONTH,5);
Date dnow = c.getTime();
String[] type= {"Databank","SQL File","Script","Scenario Recording","Other"};
byte[] junitattachment = (byte[])"abcdefghijklmnopqrstuvwxyz".getBytes();
boolean createNewEntries = (q.getResultList().size()==0);
if(createNewEntries){
assertTrue(q.getResultList().size() == 0);
Request request = new Request();
request.setRequestid(0);
request.setReqdescription("JUnit Testing record addition with JPA");
request.setReqjustification("Validate EclipseLink/WebLogic/EJB 3.0 setup for this project");
request.setProjectreference("Development Task Performance Analysis 1");
request.setReqresultdate(dnow);
request.setReqstatus(0);
em.persist(request);
int x=0;
for(int i=0; i<10;i++){
Attachment attachment = new Attachment();
attachment.setAttachmentid(i);
attachment.setAttachname("File"+i);
attachment.setAttachdate(c.getTime());
if(i==5){
x=0;
}else{
x++;
attachment.setAttachtype(type[x]);
attachment.setAttachuser("User"+i);
attachment.setAttachsize(String.valueOf(junitattachment.length));
attachment.setAttachfile(junitattachment);
em.persist(attachment);
request.getPerfAttachments().add(attachment);
em.persist(attachment);
em.persist(request);
em.getTransaction().commit();
em.close();
@Test
public void testFindAll() {
EntityManager em = factory.createEntityManager();
Query q = em.createQuery("select a from perf_attachment a");
assertTrue(q.getResultList().size() == 10);
em.close();
@Test
public void testSave() {
EntityManager em = factory.createEntityManager();
Query q = em.createQuery("select r from req_perf_header");
assertTrue(q.getResultList().size() == 1);
assertTrue(((Request) q.getResultList()).getPerfAttachments().size() ==10);
em.close();
}Finally the persistence.xml file being used is the following:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="PERFEJB" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/ORCLPERF</jta-data-source>
<class>eJBgetSet.User</class>
<class>eJBgetSet.Transaction</class>
<class>eJBgetSet.Request</class>
<class>eJBgetSet.PerfStatus</class>
<class>eJBgetSet.Attachment</class>
<class>eJBgetSet.Approver</class>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10" />
<property name="eclipselink.logging.level" value="FINEST" />
<property name="eclipselink.jdbc.driver" value="oracle.jdbc.OracleDriver" />
<property name="eclipselink.jdbc.platform"
value=" org.eclipse.persistence.platform.database.oracle.OraclePlatform " />
<property name="eclipselink.jdbc.url"
value="jdbc:oracle:thin:@localhost:1521:orcl11g:create=true" />
<property name="eclipselink.jdbc.user" value="<username>" />
<property name="eclipselink.jdbc.password" value="<password>" />
<property name="eclipselink.logging.level" value="ALL" />
<property name="eclipselink.logging.timestamp" value="true" />
<property name="eclipselink.logging.exceptions" value="true" />
<property name="eclipselink.logging.session" value="true" />
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<property name="eclipselink.ddl-generation.output-mode"
value="database" />
</properties>
</persistence-unit>
</persistence>Any help would be much appreciated. Many ThanksYou have it set to run on the WebLogic platform so it is looking up the TransactionManager from JNDI, but are running the test from within the EclipseIDE. Try deploying it to Weblogic and running it there, or change your persistence.xml settings so that it can connect/run outside the server.
Best Regards,
Chris -
Can the target system in the REF command dynamically be specified?
Hello all,
I have a main script which calls additional other scripts in different target systems (according to a defined system landscape). So far so good. Now when I have another system landscape in place, it's very likely that I have to handle other target systems.
With the REF command I can call these other eCatt scripts but how can I dynamically specify the target system? According to the eCatt team this is not possible. Does anyone of you have an idea how I can have a workaround? Is there a BADI / Userexit etc. which I can use?
I want to avoid to work with version, because I would duplicate the script. When you maintain one place you also have to remember the other versions you have.
Kind regards,
ThomasHi Thomas,
>Now when I have another system landscape in place, it's very likely that I have to handle other target systems.
I suggest to keep the target system at the REF command (since that anyway should have a name which qualifies the role of your system instead of system name, e.g. ERP or CRM or SCM ).
To change the landscape you can exchange what makes up the landscape: your system data container.
Sample:
1) SCRIPT "Scenario" call SCRIPT "Create_Order" in system CS1 which is CRM system
2) SCRIPT "Scenario" call SCRIPT "Check_Replicated_Order" in system ER1 which would be ERP system
As long as you are about to code the scripts:
- Have a system data container SD_DEV
- Define system CRM with rfc-destination to CS1 and ERP with rfc to ER1
- In your scripts only use the terms ERP and CRM
-> REF ( Create_Order, CRM ).
-> REF ( Check_Replicated_Order , ERP ).
Once you come to test another landscape:
- Simple copy SDC SD_DEV to SD_TEST_LANDSCAPE1
- Exchange only the rfc destinations to have ERP and CRM point to new systems
(don't modify the existing destination, since you will need them still)
Now start your Script "Scenario" with System data container SD_TEST_LANDSCAPE1 on start screen or even assign the system data container name in Test organizer at test package level.
This is the way you can switch landscapes very easily. It only requires to use logical target system names from the beginning.
Hope this helps or at least starts a discussion about it.
Best regards
Jens
Maybe you are looking for
-
Characters in material description
Where I can check how many characters are allowed for material description in material master ?
-
Assertion Exception in Cache Server log
Can someone let me know in what circumstances do we see the below exception 2011-06-17 02:30:06,811 ERROR [Logger@9236976 3.6.0.1] Coherence 2011-06-17 02:30:06.809/199.394 Oracle Coherence GE 3.6.0.1 <Error> (thread=DistributedCache, member=1): Asse
-
Hello, I'm trying to import an IDOC by RFC with a RFC user with few permissions. The Idoc stills with error in SM58 transaction with message "You're not authorized to send IDOCs of message type ORDRSP"... If a press F6 to "in theory" reprocess the me
-
Content Type name is not changing on site level
Hello I have one new SP2010 site. I am changing the content type name using following script, but it is not working. I have not used content type in any list or library nor in any existing ite, I am not using content type hub. Can anyone why content
-
Cannot sign in to the Apple Store using Apple ID
I wish to purchase an MBA, and for this purpose I created my first Apple ID. It works absolutely fine on the main Apple site, but it is rejected when attempting to sign in to the Apple Store (it returns the question: have you forgotten your password?