
******************************************************************************
* Script Name:           com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01
* Script Author:         Elizabeth Pino
* Script Description:    Crafts Smoke Test Case
* Script Test Area:      Your Test Component Area
* Test Server:           
* Test Client:           QAWINVM16/9.32.245.155
* Test Client OS:        WinNT Version 5.1  Build 2600 (S)
* Browser:               Internet Explorer
* Current Date and Time: Mar 30, 2012 11:28:58 PM
******************************************************************************
==============================================================================
* Testcase -  Start - Crafts Smoke Test Case - Date: Mar 30, 2012  11:28:58 PM
==============================================================================
11:28:58 PM - 00:00:00:000 - PASS - Login being doing using the following information: web page: "http://qawin16.swg.usma.ibm.com:9996/maximo"; user: "XNUMYJEB"; password: "maximo"
11:29:00 PM - 00:00:01:953 - PASS - Enter text "XNUMYJEB" in text field "username" (m)
11:29:02 PM - 00:00:03:687 - PASS - Enter text "maximo" in text field "password" (m)
11:29:04 PM - 00:00:05:843 - PASS - Page "Start Center" exist
==============================================================================
Go to "Administration -> Resources -> Crafts"
==============================================================================
11:29:07 PM - 00:00:08:609 - PASS - Select "Go To"
11:29:09 PM - 00:00:10:531 - PASS - Select menuitem "Administration"
11:29:12 PM - 00:00:13:500 - PASS - Select menuitem "Resources"
11:29:15 PM - 00:00:16:500 - PASS - Select menuitem "Crafts"
11:29:17 PM - 00:00:18:937 - PASS - Page "Crafts" exist
11:29:17 PM - 00:00:18:937 - PASS - "Administration -> Resources -> Crafts" is being displayed
==============================================================================
Open tab "Craft"
==============================================================================
==============================================================================
Select Action menu
==============================================================================
11:29:35 PM - 00:00:36:859 - PASS - Select menuitem "Manage Premium Pay Codes"
11:29:41 PM - 00:00:42:812 - PASS - Find table "Premium Pay Codes"
11:29:43 PM - 00:00:44:843 - PASS - Select button "New Row"
11:29:56 PM - 00:00:58:281 - PASS - Enter text "PPC_2939" in "Premium Pay Code"
11:30:19 PM - 00:01:20:828 - PASS - Enter text "Crafts Smoke Test Premium Pay Code 1" in "Description"
11:30:40 PM - 00:01:42:265 - PASS - Enter text "1.5" in "Default Rate"
11:30:59 PM - 00:02:00:703 - PASS - Select image "Select Value" in field "Default Rate Type"
11:31:04 PM - 00:02:06:000 - PASS - Select link value "MULTIPLIER"
11:31:14 PM - 00:02:15:953 - PASS - Check "Apply to New Crafts: unchecked"
11:31:23 PM - 00:02:24:812 - PASS - Select button "OK" on dialog "Manage Premium Pay Codes". (input parameter button text was "OK")
Testcase - PASS - Crafts Smoke Test Case
==============================================================================
* Testcase -  Start - Create new Craft - Date: Mar 30, 2012  11:31:26 PM
==============================================================================
==============================================================================
Go to "Administration -> Resources -> Crafts"
==============================================================================
11:31:27 PM - 00:02:29:140 - PASS - Select "Go To"
11:31:30 PM - 00:02:32:234 - PASS - Select menuitem "Administration"
11:31:34 PM - 00:02:36:093 - PASS - Select menuitem "Resources"
11:31:38 PM - 00:02:40:000 - PASS - Select menuitem "Crafts"
11:31:41 PM - 00:02:42:593 - PASS - Page "Crafts" exist
11:31:41 PM - 00:02:42:609 - PASS - "Administration -> Resources -> Crafts" is being displayed
11:31:43 PM - 00:02:44:687 - PASS - Select image "New Craft    CTRL+ALT+I"
11:31:51 PM - 00:02:52:781 - PASS - Enter text "9FCGZIG" in "Craft"
11:32:08 PM - 00:03:10:093 - PASS - Enter text "craft description" in "Description"
11:32:25 PM - 00:03:27:125 - PASS - Enter text "20.0" in "Standard Rate"
11:32:39 PM - 00:03:41:343 - PASS - Select image "Save Craft    CTRL+ALT+S"
Testcase - PASS - Create new Craft
==============================================================================
* Testcase -  Start - Create skill levels - Date: Mar 30, 2012  11:32:42 PM
==============================================================================
11:32:44 PM - 00:03:46:015 - PASS - Find table "Skill Levels"
11:32:45 PM - 00:03:46:843 - PASS - Select button "New Row"
11:32:51 PM - 00:03:52:609 - PASS - Select image "Select Value" in field "Skill Level"
11:32:54 PM - 00:03:56:375 - PASS - Select link value "SKIL_3414"
11:33:02 PM - 00:04:03:656 - PASS - Enter text "5" in "Skill Level Rank"
11:33:20 PM - 00:04:21:593 - PASS - Enter text "16.0" in "Standard Rate"
11:33:34 PM - 00:04:36:171 - PASS - Select image "Save Craft    CTRL+ALT+S"
11:33:39 PM - 00:04:40:953 - PASS - Select button "New Row"
11:33:45 PM - 00:04:46:937 - PASS - Select image "Select Value" in field "Skill Level"
11:33:49 PM - 00:04:50:671 - PASS - Select link value "SKIL_3605"
11:33:57 PM - 00:04:58:531 - PASS - Enter text "3" in "Skill Level Rank"
11:34:15 PM - 00:05:17:093 - PASS - Enter text "19.0" in "Standard Rate"
11:34:30 PM - 00:05:32:031 - PASS - Select image "Save Craft    CTRL+ALT+S"
11:34:35 PM - 00:05:36:968 - PASS - Select button "New Row"
11:34:41 PM - 00:05:43:109 - PASS - Select image "Select Value" in field "Skill Level"
11:34:45 PM - 00:05:47:031 - PASS - Select link value "SKIL_3758"
11:34:53 PM - 00:05:55:031 - PASS - Enter text "1" in "Skill Level Rank"
11:35:12 PM - 00:06:14:296 - PASS - Enter text "12.0" in "Standard Rate"
11:35:28 PM - 00:06:29:718 - PASS - Select image "Save Craft    CTRL+ALT+S"
Testcase - PASS - Create skill levels
==============================================================================
* Testcase -  Start - Create bad skill level - Date: Mar 30, 2012  11:35:31 PM
==============================================================================
11:35:33 PM - 00:06:34:937 - PASS - Select button "New Row"
11:35:40 PM - 00:06:41:468 - PASS - Select image "Select Value" in field "Skill Level"
11:35:44 PM - 00:06:45:468 - PASS - Select link value "SKIL_3414"

11:35:49 PM - 00:06:50:531 - FAIL - Expect dialog message "BMXAA4129E". Actual "1 - 4 of 4"

Stack Trace:
java.lang.Exception
	at ibm.loggers.VisualReporter.getStackTrace(VisualReporter.java:1411)
	at ibm.loggers.VisualReporter.errorHandler(VisualReporter.java:1336)
	at ibm.util.Logfuncs.errorHandler(Logfuncs.java:26)
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.handleMessage(Dialog.java:1072)
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.handleMessage(Dialog.java:939)
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.handleMessage(Dialog.java:896)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.createBadSkillLevel(TC_Craft_01.java:181)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.createSkillLevels(TC_Craft_01.java:160)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.test_Craft(TC_Craft_01.java:93)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.testMain(TC_Craft_01.java:349)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1253)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1453)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1806)
	at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:1040)
	at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:964)
	at com.rational.test.ft.script.RationalTestScript.callScript(RationalTestScript.java:556)
	at com.rational.test.ft.script.RationalTestScript.callScript(RationalTestScript.java:488)
	at com.rational.test.ft.script.RationalTestScript.callScript(RationalTestScript.java:380)
	at ibm.util.Scriptfuncs.runScript(Scriptfuncs.java:852)
	at com.ibm.tivoli.maximo.uitest.testsuites.SMK_Suite.testMain(SMK_Suite.java:121)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1253)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1453)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1806)
	at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:1040)
	at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:964)
	at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:862)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1253)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1453)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1806)
	at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlayback.java:852)
	at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:737)
	at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2424)
	at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:350)
	at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
	at org.eclipse.core.launcher.Main.main(Main.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.rational_ft.startFT(rational_ft.java:315)
	at com.rational.test.ft.rational_ft.main(rational_ft.java:186)

Bitmap Saved to: C:\workspace\TIVAUTOMATION_logs\com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01_0331043549126_SCFAIL.jpg


11:35:55 PM - 00:06:56:546 - FAIL - Testcase terminated. Caught Exception.


Stack Trace:
java.lang.NullPointerException: Button "OK" not exist on dialog
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.close(Dialog.java:218)
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.handleMessage(Dialog.java:1078)
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.handleMessage(Dialog.java:939)
	at com.ibm.tivoli.maximo.common.web.html.widgets.Dialog.handleMessage(Dialog.java:896)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.createBadSkillLevel(TC_Craft_01.java:181)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.createSkillLevels(TC_Craft_01.java:160)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.test_Craft(TC_Craft_01.java:93)
	at com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01.testMain(TC_Craft_01.java:349)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1253)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1453)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1806)
	at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:1040)
	at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:964)
	at com.rational.test.ft.script.RationalTestScript.callScript(RationalTestScript.java:556)
	at com.rational.test.ft.script.RationalTestScript.callScript(RationalTestScript.java:488)
	at com.rational.test.ft.script.RationalTestScript.callScript(RationalTestScript.java:380)
	at ibm.util.Scriptfuncs.runScript(Scriptfuncs.java:852)
	at com.ibm.tivoli.maximo.uitest.testsuites.SMK_Suite.testMain(SMK_Suite.java:121)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1253)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1453)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1806)
	at com.rational.test.ft.script.RationalTestScript.runMainInner(RationalTestScript.java:1040)
	at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:964)
	at com.rational.test.ft.script.RationalTestScript.runMain(RationalTestScript.java:862)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.sys.FtReflection.invokeMethod2Ext(FtReflection.java:1253)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1453)
	at com.rational.test.ft.sys.FtReflection.invokeMethodExt(FtReflection.java:1806)
	at com.rational.test.ft.application.ScriptPlayback.runScript(ScriptPlayback.java:852)
	at com.rational.test.ft.application.ScriptPlayback.run(ScriptPlayback.java:737)
	at com.rational.test.ft.application.RationalFtMain.run(RationalFtMain.java:2424)
	at com.rational.test.ft.application.RationalFtMain.main(RationalFtMain.java:350)
	at com.rational.test.ft.application.CommandLineApplication.run(CommandLineApplication.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
	at org.eclipse.core.launcher.Main.main(Main.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at com.rational.test.ft.rational_ft.startFT(rational_ft.java:315)
	at com.rational.test.ft.rational_ft.main(rational_ft.java:186)

Bitmap Saved to: C:\workspace\TIVAUTOMATION_logs\com.ibm.tivoli.maximo.uitest.testcases.smoke.TC_Craft_01_0331043555126_SCFAIL.jpg

Testcase - FAIL - Create bad skill level
******************************************************************************
* Testcases Executed:              4
* Testcases Passed:                3
* Testcases Failed:                1
* Percent Testcases Passed:        75.0%
* Percent Testcases Failed:        25.0%
* Number of Test Actions Executed: 55
* Number of Errors found:          2
* Elapsed Time:                    00:06:56:796
******************************************************************************