Automation of unit tests for the development of the ATG
HelloI'm trying to set up unit tests automated to ATG. Is there anyone who has had success with this? I searched the whole forum and there is no indication in this sense. Is there anyone doing TDD for ATG?
I've tried the ATG dust, but it is not useful and has many gaps. Anyone succeeded with other frameworks such as Mockito, needle, EasyMock etc. ? Any help is appreciated.
It will be interesting to know what the ATG developers use for unit tests.
Thank you.
You can try Mockito.
Setup
1 initialize the component to be tested (Formhandler/repository/droplet etc.) and possible data (form entries etc.).
2 mock, the calls of the method required when using method in mockito.
Test
1. write all possible test methods.
2 when use, check the methods in Mockito for testing your methods.
3. you can also use assertions to test the results (Ex: form errors)
Tags: Oracle Applications
Similar Questions
-
Good unit test for HP Smart Printing
When trying to print http://models2014.webs.upv.es/schedule.htm without smart printing, a single table shows, and all other pages are empty.
Smart printing but also has problems with this page, not being able to print a part of the text below the second table.
With some difficulty, you can select all the text, but it prints up on 'Session 9' and leaves two pages empty.
While I recognize that this Web page is built quite strangely (absolute positioning of points throughout the page), I think it may be a good test for the team Smart Printing scenario.
In case it's relevant: Smart Print v2.6, IE 11, W7x64.
Kind regards
Johan
Hi Johan,.
I understand that you have this page as a test case, and I appreciated that! I wonder if you have tried to use Google Chrome HP Smart printing on this page? Technically, HP Smart printing is compatible only with IE 9 and 10 and Google Chrome - chrome is the browser for the support in the future (at least this is what I've heard). I was wondering if you get better results using Chrome. Just a thought.
-
Unit test in sql developer 4.1 fails but passes in 4.0
I can't tell if it's a question of Java or Sql * developer issue.
SQL * Developer Version: 64-bit 4.1.0.17.29
Versions of Java: Tried jdk 8: 1.8.0_5, 1.8.0_20 and 1.8.0_31 - all 64 bits
That is the message in the response of unit test:
CPS_TOOLS.PREP_FOR_DELIMITED_FIELD failed: Missing defines oracle.jdbc.driver.Accessor.isNull(Accessor.java:744) oracle.jdbc.driver.CharCommonAccessor.getString(CharCommonAccessor.java:350) oracle.jdbc.driver.OracleCallableStatement.getString(OracleCallableStatement.java:661) oracle.jdbc.driver.OracleCallableStatementWrapper.getString(OracleCallableStatementWrapper.java:860) oracle.jdbc.proxy.oracle$1dbtools$1raptor$1proxy$1driver$1oracle$1RaptorProxyOJDBCStatement$2oracle$1jdbc$1internal$1OracleCallableStatement$$$Proxy.getString(Unknown Source) oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingVARCHAR.customOutputByPosition(CallableBindingVARCHAR.java:51) oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingDatumAtName.customOutput(CallableBindingDatumAtName.java:123) oracle.dbtools.raptor.datatypes.impl.CallableBindingImpl.getOutput(CallableBindingImpl.java:74) oracle.dbtools.unit_test.testObjects.UtTestImplArgs.getOutput(UtTestImplArgs.java:320) oracle.dbtools.unit_test.runner.Runner.executeRunn ...
Now, the same unit test works with the following text:
SQL * Developer Version: 64-bit 4.0.2.15
The Versions of Java: 64 bit jdk 7 - 1.7.0_55
I tried to follow here debug information collection:
http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/
However, there is no report in the command window after a ctrl-pause/break. At the same time, however, it is not like sql * developer hangs here.
Thoughts?
EA 4.1 includes a new feature to save all JDBC calls (view > Log, and then note the statements tab in the logs pane), so it could be the difference in the behavior of Test Unit between 4.0 and 4.1.
You use the JDBC default 12.1 driver, or you have overridden by specifying a particular Oracle client? In other words, in
Tools > Preferences > Database > advanced > use Oracle client > configure...
I read that somewhere there may be problems when you use the clients pre - 12 c with earlier versions of JDBC. driver
-
Error in Unit Test Framework: "the path of the VI test is not valid."
I get this error on files lvtest for a few screws, it appears so when I click on the button "import values of VI. The unit test framework correctly on some screws, but some work raise the error. I tried to move and rename the files and of coarse checked the path of the file. I'm open to suggestions, I'm starting to like what the Unit Test Framework is capable of, but this error becomes a problem for me.
Thank you
John
Hi John,.
It seems that I do not receive the same error as you. In the Advanced tab of .lvtest files, that you selected as the Configuration setting? If you left it as default value, can you check to see if the orders/lights are selected in the connector pane?
-
How can manage us versioning of unit tests in the Test Oracle Manager
Hello
Usually, we have several versions of our product. How to manage versions of testcases in Oracle Test Manager (MTM) so that we can run a version-specific unit tests? Any ideas?
Thank youHello
You can create a separate test group to organize unit tests by version. You can also choose the tests that will be run using the Scheduler. Or you can create a separate project to store your unit tests by app version/version. You can't store different versions of a script automated in a unit test in OTM.
Concerning
Rajesh
-
Problems with the Guide of TV Media Centre in the United Kingdom for the new year?
Since midnight January 1, no data are available for any channel in the guide, even though it says that it has successfully downloaded the latest announcements of guide. Does anyone else have this problem?
I tried a new analysis for the services and set up the guide even once.PHello PGreenhill,
Please see the thread below because there was a problem with the program guide in the United Kingdom and Ireland. It must be corrected. If not, let us know.
http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-Winapps/the-electronic-program-guide-EPG-for-Windows-Media/923cf081-0607-497d-889c-6424e8299213Check also that all your Windows updates are up-to-date.
Thank you
Marilyn
-
Unit Testing is the Mocha/karma/chai to extend Script?
We write testcases with mocha, karma, chai, otherwise and bamboo for our Foundation that we use in our extension of Adobe, but the main material that we have tested all the lives in our Script files extend. Someone has had experience using all tests with Script libraries extend?
I use https://github.com/tmaslen/jasminejsx with some degree of success.
There is also a test module in https://github.com/debrouwere/Extendables that you would like to try.
They use jasmine.
Hope that helps
John
-
Client Oracle is a test for the creation of SP database?
I have the Oracle 10 g client in my machine. Is there a database of test I can connect to and create stored procedures?
If not, is it possible to create a local database?
And what about the Oracle Express customer? It come with a test database? Or do I need to install the database in my system for the creation of SP?901007 wrote:
I have the Oracle 10 g client in my machine. Is there a database of test I can connect to and create stored procedures?
If not, is it possible to create a local database?
And what about the Oracle Express customer? It come with a test database? Or do I need to install the database in my system for the creation of SP?N ° you must install the version of the oracle for this database server.
-
Test for the day of the week, using javascript?
Is it possible to test for what day of the week has been selected in a Date field using javascript?
I have a script that checks if an option button 'Day' is checked and if so throws an error if the input time is not between 06:00 and 15:30. I need to change the hours between 06:00 and 14:30, but only if the day of the week is a Friday (selected in the field 'Date').
Any ideas would be really appreciated.
If
(TimeReceived.isNull == true()
{
xfa.host.messageBox ("Please enter a time received");
TimeReceived.rawValue
= null;
xfa.host.setFocus ("TimeReceived");
}
else If ((TimeofCall.Day.rawValue ==0))
{
if (TimeReceived.rawValue.search(":") > 0)
val1 = TimeReceived.rawValue.replace (":", "");
on the other
val1 = TimeReceived.rawValue;
if (val1 < 600 || val1 > 1530)
{
xfa.host.messageBox ("If 'Airtime' has selected day, the"received time"must be included in the normal working hours (06:00 to 15:30).") Make sure that you use military time, please re-enter. ») ;
TimeReceived.rawValue
= null;
xfa.host.setFocus ("TimeReceived");
}
}FormCalc has a date function to obtain the day of the week.
Form1.Page1.Subform1.DayOfWeek::calculate - (FormCalc, client)
date_ var = Date2Num(date.formattedValue,"MM/DD/YYYY")
$ = Num2Date (date_, "EEE")The "EEE" model returns MON, Mar, sea, etcetera. You must synchronize the date pattern on the DateTimeField ('date' in my case) with the script.
"dayOfTheWeek" could be a hidden field and you can reference the 'dayOfTheWeek.rawValue' of your JavaScript.
Steve
-
Is there a way to test for the first call of a function?
Hello
I created a function (using other functions I created) to generate a dynamic hierarchy tree menu based on parentID and itemID etc etc - I'm sure you are familiar with this concept. It works very well, and there is no problem.
However, I do all this build in a string, and then dumped on the page. Again, this works very well. However, because the function is called recursively, my class, the class = 'tree' repeat itself in each occurrence of the opening UL tag.
I want to only this class to be applied to the first UL, but because it is recursive, I don't know how to detect if the function is called for the first time or 5th time, etc.. I mean something like:
< cfif myFunction is called the first time >
Add the class
< cfelse >
do not add the class
< / cfif >
Please see my attached code. It is fully functional. Please don't worry that all the other functions do etc, they work very well, but I need a way or a variable to test against.
Any ideas?
Thank you very much
Michael.Kapitaine wrote:
> Hmmm, I bet that the solution is simple, but my mind is frazzled! Haha.
>Yes, it's simple, you test the Boolean value and it will be true if it is
set to true for a recursion.
#somethingStupid(5,true) #. -
Automated ' Save as ' Option for the treatment of batch files?
Hi all
I use a batch process to watermark all my images coming out on my site Web etc and social networks.
I ran this process in PS CS6 and this would automatically save the files with predefined file (save as .jpg) as planned options. I would not intervene at all, just let it run in the background. However after the 2015.5 of CC PS, it is prompting me to "save under" after that each individual picture is a watermark. Is not really viable as I can sometimes be the treatment of hundreds of photos at once. I save the picture watermark to a new location and do not want to use the names of existing files, I do not know I do something wrong, but I don't particularly want to do a new action to save to a new location for each specific set of photo, I'll take. Any suggestions?
-Roger
Simply record the action for the watermark in your image with no. save step. Then use the Image or the Image Processor plugin Pro processor script. Set the script to save as many image files and file types that you need size and save where you want and have the script includes your action processing of image files from source to watermark your images...
-
test for the null value to IN request (null, 'a ', ' b', 'c')
Hello
Oracle 10.2.0.4
I think the following query is incorrect, in my opinion. (there is an index on the collar, but NULL values are ignored?
SELECT COUNT (*) < table > where col in (null, 'a ', ' b', 'c')
It works (no errors) and forth fast enough.
However, I think the correct query would
SELECT COUNT (*) < table > where IS NULL or neck neck ('a', 'b', 'c')
It takes a lot of time. As I see it, he performs a table scan for part of the value NULL and use the index for the rest, as the index cannot be used for NULL values.
I would appreicate an explanation on this matter, particularly why Oracle accepts the first query "where col in (null, 'a ', ' b', 'c')" without any problem.
Thank you
A null value is not equal to what whatsoever, not even another null value. This is consistent with the definition of the ANSI. For your first request is not what you think it does, even if it is not syntactically incorrect.
The second query is correct. If you want to use an index, you must create a bitmap index (which requires Enterprise Edition licenses), because they do not include the values NULL, unlike B * tree index.
-
How to test for the node XML empty?
If (selectedImage.detail! = "")
works with
< picture detail = "" >
< / image >
but not
< image >
< detail > < / details >
< / image >
Hope that makes sense for a person, can't think really how to explain it better, I'm sure it's a fairly simple thing
Quote:
Posted by: ntsiii
I did not understand. You try to search the nodes in detail where the text node is empty?
TracyYes - for that I can't ignore explicitly their.
Seems that all I had to do was if(!selectedImage.detail)
Thanks for the reply - despite my not knowing how to phrase the question.
-
Cannot create schema for the ATG publication
I am so close to finishing my first install! Help, please.
I'm stuck on creating the schema for the publication. All the rest when it is fine. But now:
-----
-SELECT A DATA SOURCE TO CONFIGURE-
Enter [h] ELP, ain menu [m], [q] ITU to exit
[R] reporting data warehouse - done
[L] reports Loader - done
* [P] Publishing
[C] production Core - done
[D]
>
-CONFIGURE DATASOURCE PUBLISHING-
Enter [h] ELP, ain menu [m], [q] ITU to exit
[C] the connection Details - facts
[T] test connection - made
* [S] create a schema
Import initial data
[D] drop Schema
[O] set up another source of data
>
-------CREATE SCHEMA------------------------------------------------------------
Enter [h] ELP, ain menu [m], [q] ITU to exit
Editing
* [C] create a schema
[S] Skip
>
Beginning of creation of schema. View the log to /home/oracle/ATG/ATG10.0.3/home/ file
.. /CIM/log/CIM.log
|. . . . . . . . |
|
-CREATING SCHEMA FAILURE-
Enter [h] ELP, ain menu [m], [q] ITU to exit
ORA-00904: "CHECKIN_DATE": invalid identifier
* [E] modify connection details
[D] drop Schema
[C] cancel
>Can you check the ATG/home/./... /CIM/log/CIM.log and post the error here?
Or maybe just drop the schema and try again to create.
-Kiss
-
Failed to retrieve the site definition for the ATG 11.1 site id
Hello
I'm trying to access a page /browse created under the site of siteStoreUs in the experience Manager. If I try to access the page of the application, observe the error with the blank page below.
We work with ATG 11.1
Please help me to solve this error.
18:08:32, 401 SEVERE [atg.endeca.assembler.multisite.ExtendedSiteManager] (http-/0.0.0.0:8080-6) unable to retrieve the site for the site id of the site definition: /siteStoreUS: com.endeca.store.exceptions.
PathNotFoundException: No node found at path: [pages].
at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:153) [_DAF. [Endeca.Assembler_slib_sendeca__assembler__core - 11.1.0.jar:11.1.0]
at com.endeca.store.configuration.InternalNode.getNodeInfo(InternalNode.java:221) [_DAF. [Endeca.Assembler_slib_sendeca__assembler__core - 11.1.0.jar:11.1.0]
Thanks in advance,
Ravinder Pogulakonda
The resolution is here;
Set storeFactory = / atg/short/assembler/cartridge/manager/DefaultFileStoreFactory in /atg/endeca/assembler/cartridge/manager/DefaultWorkbenchContentSource.properties
Make sure of course below are configured correctly
-Site of short Id to the element of site must correspond with the name of the site in the Manager(Ex: If the site name in XM is "homeSite", then Endeca site id in the site item should be "/homeSite") experience
-Set configurationPath=C:/Endeca/ToolsAndFrameworks/11.1.0/server/workspace/state/repository/
/atg/endeca/assembler/cartridge/manager/DefaultFileStoreFactory.properties -Create the user segment in XM to /homeSite as site.homeSite.
I hope this helps
Thank you
Ravinder
Maybe you are looking for
-
Regulator PID very slow to reach the value Point and zeros process Variable when it should not
Hello I am using a PID controller to regulate the emission of a filament current in an ion gauge, but I'm running into several problems. The first and less important, are the controller of PID VI takes at least 5 minutes to get the current where it n
-
My Omni 27-1057c Gets a "ERROR: not detected no boot disk or the drive failed.
The computer will start up to run for a while appear them error: no boot disk was detected or the drive failed.
-
OfficeJet 6500 - failure to print in black only
recently, my printer stopped printing black only despite a partial filling of reading on a cartridge more and then using a new replacement cartridge.
-
Hello all and thanks in advance. I have a win7 64 bit with multiple user accounts. (children) I would like to activate some sort of device of Automatic logoff when someone leaves the machine and it was inactive for a set period. Edit: Thanks for th
-
BlackBerry Z10 weird rotation and swipe
Just an observation on the rotation and slide on the Z10. I normally have the Z10 in a loading dock that it was lying on its side. The screen and the icons are on the side and so I have to drag from right to left. When it moves to the active forms (e