Commit 01c7c423 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Create autotest for exportaddressbook

parent 9325c968
[AddHostDialog]
Size=600,600
[AgentTypeDialog]
Size=460,320
[CollectionPropertiesDialog]
Size=635,468
[CollectionViewCheckState]
Current=x-1
Selection=c3647,c2656,c3840
[CollectionViewState]
Current=c3840
Expansion=c2642,c2643,c2645,c2786,c3132
HorizontalScroll=0
Selection=c3840
VerticalScroll=0
[ConfigurePluginsWidget]
splitter=267,267
[DetailedPrintStyle]
ContactHeaderBGColor=0,0,0
ContactHeaderForeColor=255,255,255
[DownloadDialog Settings]
Height 1080=477
Width 1920=700
[ItemViewState]
Current=i731884
Expansion=
HorizontalScroll=0
Selection=i731884
VerticalScroll=0
[KFileDialog Settings]
detailViewIconSize=0
[KPimPrintPreviewDialog]
Size=800,600
[Key Selection Dialog]
Dialog size=457,326
header=\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xb1\x00\x00\x00\x02\x01\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00T\xff\xff\xff\xff\x00\x00\x00\x81\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00h\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01I\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x00\x00\x00T
[MainWindow]
Height 1080=760
State=AAAA/wAAAAD9AAAAAAAABRAAAAK1AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAA
ToolBarsMovable=Disabled
Width 1920=1296
[MergeContactDuplicateContactDialog]
Size=740,532
[MergeContactsDialog]
Size=782,392
[Migratekde4]
Version=1
[PrintingWizard]
Size=511,465
[TagSelectionDialog]
Size=500,400
[UiState_ContactView]
ContactView=\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xee\x00\x00\x00\x01\x01\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00d\xff\xff\xff\xff\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\xee\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x00\x00\x00d
[UiState_MainWidgetSplitter_3]
ContactView=\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xee\x00\x00\x00\x01\x01\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00d\xff\xff\xff\xff\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\xee\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x00\x00\x00d
MainWidgetSplitter1=418,975
MainWidgetSplitter2=154,263
[XXPortVCard]
ExportBusinessFields=true
ExportDisplayName=false
ExportEncryptionKeys=true
ExportOtherFields=false
ExportPictureFields=true
ExportPrivateFields=false
information/VERSION_2
information/exportdatatype.xml
configs/kaddressbookrc
configs/kaddressbookui.rc
[AddHostDialog]
Size=600,600
[AgentTypeDialog]
Size=460,320
[CollectionPropertiesDialog]
Size=635,468
[CollectionViewCheckState]
Current=x-1
Selection=foo/bla bla/bli3647,foo/bla bla/bli2656,foo/bla bla/bli3840
[CollectionViewState]
Current=foo/bla bla/bli3840
Expansion=foo/bla bla/bli2642,foo/bla bla/bli2643,foo/bla bla/bli2645,foo/bla bla/bli2786,foo/bla bla/bli3132
HorizontalScroll=0
Selection=foo/bla bla/bli3840
VerticalScroll=0
[ConfigurePluginsWidget]
splitter=267,267
[DetailedPrintStyle]
ContactHeaderBGColor=0,0,0
ContactHeaderForeColor=255,255,255
[DownloadDialog Settings]
Height 1080=477
Width 1920=700
[ItemViewState]
Current=i731884
Expansion=
HorizontalScroll=0
Selection=i731884
VerticalScroll=0
[KFileDialog Settings]
detailViewIconSize=0
[KPimPrintPreviewDialog]
Size=800,600
[Key Selection Dialog]
Dialog size=457,326
header=\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xb1\x00\x00\x00\x02\x01\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00T\xff\xff\xff\xff\x00\x00\x00\x81\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00h\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x01I\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x00\x00\x00T
[MainWindow]
Height 1080=760
State=AAAA/wAAAAD9AAAAAAAABRAAAAK1AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAA
ToolBarsMovable=Disabled
Width 1920=1296
[MergeContactDuplicateContactDialog]
Size=740,532
[MergeContactsDialog]
Size=782,392
[Migratekde4]
Version=1
[PrintingWizard]
Size=511,465
[TagSelectionDialog]
Size=500,400
[UiState_ContactView]
ContactView=\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xee\x00\x00\x00\x01\x01\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00d\xff\xff\xff\xff\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\xee\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x00\x00\x00d
[UiState_MainWidgetSplitter_3]
ContactView=\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xee\x00\x00\x00\x01\x01\x01\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00d\xff\xff\xff\xff\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\xee\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x03\xe8\x00\x00\x00\x00d
MainWidgetSplitter1=418,975
MainWidgetSplitter2=154,263
[XXPortVCard]
ExportBusinessFields=true
ExportDisplayName=false
ExportEncryptionKeys=true
ExportOtherFields=false
ExportPictureFields=true
ExportPrivateFields=false
<!DOCTYPE gui>
<gui translationDomain="kaddressbook" name="kaddressbook" version="42">
<MenuBar alreadyVisited="1">
<Menu alreadyVisited="1" name="file" noMerge="1">
<text translationDomain="kxmlgui5">&amp;File</text>
<Action name="file_print"/>
<Action name="file_print_preview"/>
<Separator weakSeparator="1"/>
<Menu name="file_new" noMerge="1">
<text translationDomain="kaddressbook">&amp;New</text>
<Action name="akonadi_contact_create"/>
<Action name="akonadi_contact_group_create"/>
<Separator/>
<Action name="akonadi_resource_create"/>
</Menu>
<Separator/>
<Action name="import_menu"/>
<Action name="export_menu"/>
<Separator/>
<Action name="file_print"/>
<Action name="file_print_preview"/>
<Separator/>
<ActionList name="kaddressbook_plugins_file"/>
<Separator/>
<Action name="file_quit"/>
<Separator weakSeparator="1"/>
<Action name="file_quit"/>
</Menu>
<Menu alreadyVisited="1" name="edit" noMerge="1">
<text translationDomain="kaddressbook">&amp;Edit</text>
<Action append="edit_edit_merge" name="akonadi_contact_item_edit"/>
<Action append="edit_cut_merge" name="akonadi_item_cut"/>
<Action append="edit_copy_merge" name="akonadi_item_copy"/>
<Action append="edit_paste_merge" name="akonadi_paste"/>
<Separator/>
<Action name="akonadi_item_copy_to_menu"/>
<Action name="akonadi_item_move_to_menu"/>
<Separator/>
<Action append="edit_delete_merge" name="akonadi_item_delete"/>
<Separator/>
<Action name="akonadi_resource_delete"/>
<Separator/>
<ActionList name="kaddressbook_plugins_edit"/>
</Menu>
<Menu alreadyVisited="1" name="view" noMerge="1">
<text translationDomain="kaddressbook">&amp;View</text>
<Action name="theme_menu"/>
<Separator/>
<Action name="view_mode_simple"/>
<Action name="view_mode_2columns"/>
<Action name="view_mode_3columns"/>
<Separator/>
<Action name="options_show_qrcodes"/>
</Menu>
<Menu name="action" noMerge="1">
<text translationDomain="kaddressbook">&amp;Action</text>
<ActionList name="kaddressbook_plugins_actions"/>
</Menu>
<Menu alreadyVisited="1" name="tools" noMerge="1">
<text translationDomain="kaddressbook">&amp;Tools</text>
<ActionList name="kaddressbook_plugins_tools"/>
</Menu>
<Menu alreadyVisited="1" name="settings" noMerge="1">
<text translationDomain="kxmlgui5">&amp;Settings</text>
<Action name="kaddressbook_configure"/>
<Separator weakSeparator="1"/>
<Action name="options_show_menubar"/>
<Merge name="StandardToolBarMenuHandler"/>
<Merge name="KMDIViewActions"/>
<Separator weakSeparator="1"/>
<Action name="options_configure_keybinding"/>
<Action name="options_configure_toolbars"/>
<Action name="options_configure"/>
</Menu>
<Separator weakSeparator="1"/>
<Menu name="help" noMerge="1">
<text translationDomain="kxmlgui5">&amp;Help</text>
<Action name="help_contents"/>
<Action name="help_whats_this"/>
<Separator weakSeparator="1"/>
<Action name="help_report_bug"/>
<Separator weakSeparator="1"/>
<Action name="help_donate"/>
<Separator weakSeparator="1"/>
<Action name="switch_application_language"/>
<Separator weakSeparator="1"/>
<Action name="help_about_app"/>
<Action name="help_about_kde"/>
</Menu>
</MenuBar>
<ToolBar alreadyVisited="1" name="mainToolBar" noMerge="1">
<text translationDomain="kaddressbook">Main Toolbar</text>
<Action name="akonadi_contact_create"/>
<Action name="akonadi_contact_group_create"/>
<Separator name="separator_0"/>
<Action name="help_about_kde"/>
<Action append="edit_edit_merge" name="akonadi_contact_item_edit"/>
<Separator name="separator_1"/>
<Action name="quick_search"/>
<Action name="category_filter"/>
<Separator name="separator_2"/>
<ActionList name="kaddressbook_toolbar_actions"/>
</ToolBar>
<Menu name="akonadi_collectionview_contextmenu" noMerge="1">
<Action name="akonadi_collection_create"/>
<Action name="akonadi_collection_delete"/>
<Separator/>
<Action name="akonadi_collection_move_to_menu"/>
<Action name="akonadi_collection_copy_to_menu"/>
<Separator/>
<Action name="akonadi_resource_create"/>
<Action name="akonadi_resource_delete"/>
<Action name="akonadi_collection_sync"/>
<Separator/>
<Action name="akonadi_collection_properties"/>
<Action name="akonadi_resource_properties"/>
<Separator/>
<Action name="serverside_subscription"/>
</Menu>
<Menu name="akonadi_itemview_contextmenu" noMerge="1">
<Action name="akonadi_contact_create"/>
<Action name="akonadi_contact_group_create"/>
<Action name="akonadi_contact_item_edit"/>
<Separator/>
<Menu name="file_export" noMerge="1">
<text translationDomain="kaddressbook">&amp;Export</text>
<Action name="file_export_vcard40"/>
<Action name="file_export_vcard30"/>
<Action name="file_export_vcard21"/>
<Action name="file_export_csv"/>
<Action name="file_export_ldif"/>
<Action name="file_export_gmx"/>
</Menu>
<Separator/>
<Action name="search_gravatar"/>
<Separator/>
<Action name="akonadi_item_copy_to_menu"/>
<Action name="akonadi_item_move_to_menu"/>
<Separator/>
<ActionList name="kaddressbook_plugins_popupmenu_actions"/>
<Separator/>
<Action name="file_print"/>
<Action name="file_print_preview"/>
<Separator/>
<Action name="akonadi_item_delete"/>
<Separator/>
<Action name="debug_akonadi_search"/>
</Menu>
</gui>
<!DOCTYPE gui>
<gui translationDomain="kaddressbook" name="kaddressbook" version="42">
<MenuBar alreadyVisited="1">
<Menu alreadyVisited="1" name="file" noMerge="1">
<text translationDomain="kxmlgui5">&amp;File</text>
<Action name="file_print"/>
<Action name="file_print_preview"/>
<Separator weakSeparator="1"/>
<Menu name="file_new" noMerge="1">
<text translationDomain="kaddressbook">&amp;New</text>
<Action name="akonadi_contact_create"/>
<Action name="akonadi_contact_group_create"/>
<Separator/>
<Action name="akonadi_resource_create"/>
</Menu>
<Separator/>
<Action name="import_menu"/>
<Action name="export_menu"/>
<Separator/>
<Action name="file_print"/>
<Action name="file_print_preview"/>
<Separator/>
<ActionList name="kaddressbook_plugins_file"/>
<Separator/>
<Action name="file_quit"/>
<Separator weakSeparator="1"/>
<Action name="file_quit"/>
</Menu>
<Menu alreadyVisited="1" name="edit" noMerge="1">
<text translationDomain="kaddressbook">&amp;Edit</text>
<Action append="edit_edit_merge" name="akonadi_contact_item_edit"/>
<Action append="edit_cut_merge" name="akonadi_item_cut"/>
<Action append="edit_copy_merge" name="akonadi_item_copy"/>
<Action append="edit_paste_merge" name="akonadi_paste"/>
<Separator/>
<Action name="akonadi_item_copy_to_menu"/>
<Action name="akonadi_item_move_to_menu"/>
<Separator/>
<Action append="edit_delete_merge" name="akonadi_item_delete"/>
<Separator/>
<Action name="akonadi_resource_delete"/>
<Separator/>
<ActionList name="kaddressbook_plugins_edit"/>
</Menu>
<Menu alreadyVisited="1" name="view" noMerge="1">
<text translationDomain="kaddressbook">&amp;View</text>
<Action name="theme_menu"/>
<Separator/>
<Action name="view_mode_simple"/>
<Action name="view_mode_2columns"/>
<Action name="view_mode_3columns"/>
<Separator/>
<Action name="options_show_qrcodes"/>
</Menu>
<Menu name="action" noMerge="1">
<text translationDomain="kaddressbook">&amp;Action</text>
<ActionList name="kaddressbook_plugins_actions"/>
</Menu>
<Menu alreadyVisited="1" name="tools" noMerge="1">
<text translationDomain="kaddressbook">&amp;Tools</text>
<ActionList name="kaddressbook_plugins_tools"/>
</Menu>
<Menu alreadyVisited="1" name="settings" noMerge="1">
<text translationDomain="kxmlgui5">&amp;Settings</text>
<Action name="kaddressbook_configure"/>
<Separator weakSeparator="1"/>
<Action name="options_show_menubar"/>
<Merge name="StandardToolBarMenuHandler"/>
<Merge name="KMDIViewActions"/>
<Separator weakSeparator="1"/>
<Action name="options_configure_keybinding"/>
<Action name="options_configure_toolbars"/>
<Action name="options_configure"/>
</Menu>
<Separator weakSeparator="1"/>
<Menu name="help" noMerge="1">
<text translationDomain="kxmlgui5">&amp;Help</text>
<Action name="help_contents"/>
<Action name="help_whats_this"/>
<Separator weakSeparator="1"/>
<Action name="help_report_bug"/>
<Separator weakSeparator="1"/>
<Action name="help_donate"/>
<Separator weakSeparator="1"/>
<Action name="switch_application_language"/>
<Separator weakSeparator="1"/>
<Action name="help_about_app"/>
<Action name="help_about_kde"/>
</Menu>
</MenuBar>
<ToolBar alreadyVisited="1" name="mainToolBar" noMerge="1">
<text translationDomain="kaddressbook">Main Toolbar</text>
<Action name="akonadi_contact_create"/>
<Action name="akonadi_contact_group_create"/>
<Separator name="separator_0"/>
<Action name="help_about_kde"/>
<Action append="edit_edit_merge" name="akonadi_contact_item_edit"/>
<Separator name="separator_1"/>
<Action name="quick_search"/>
<Action name="category_filter"/>
<Separator name="separator_2"/>
<ActionList name="kaddressbook_toolbar_actions"/>
</ToolBar>
<Menu name="akonadi_collectionview_contextmenu" noMerge="1">
<Action name="akonadi_collection_create"/>
<Action name="akonadi_collection_delete"/>
<Separator/>
<Action name="akonadi_collection_move_to_menu"/>
<Action name="akonadi_collection_copy_to_menu"/>
<Separator/>
<Action name="akonadi_resource_create"/>
<Action name="akonadi_resource_delete"/>
<Action name="akonadi_collection_sync"/>
<Separator/>
<Action name="akonadi_collection_properties"/>
<Action name="akonadi_resource_properties"/>
<Separator/>
<Action name="serverside_subscription"/>
</Menu>
<Menu name="akonadi_itemview_contextmenu" noMerge="1">
<Action name="akonadi_contact_create"/>
<Action name="akonadi_contact_group_create"/>
<Action name="akonadi_contact_item_edit"/>
<Separator/>
<Menu name="file_export" noMerge="1">
<text translationDomain="kaddressbook">&amp;Export</text>
<Action name="file_export_vcard40"/>
<Action name="file_export_vcard30"/>
<Action name="file_export_vcard21"/>
<Action name="file_export_csv"/>
<Action name="file_export_ldif"/>
<Action name="file_export_gmx"/>
</Menu>
<Separator/>
<Action name="search_gravatar"/>
<Separator/>
<Action name="akonadi_item_copy_to_menu"/>
<Action name="akonadi_item_move_to_menu"/>
<Separator/>
<ActionList name="kaddressbook_plugins_popupmenu_actions"/>
<Separator/>
<Action name="file_print"/>
<Action name="file_print_preview"/>
<Separator/>
<Action name="akonadi_item_delete"/>
<Separator/>
<Action name="debug_akonadi_search"/>
</Menu>
</gui>
......@@ -88,8 +88,7 @@ void ExportAddressbookJobInterfaceTest::exportAddressBookConfig_data()
{
QTest::addColumn<QByteArray>("configpath");
const QByteArray pathConfig(QByteArray(PIMDATAEXPORTER_DIR) + "/export/");
qDebug() << " pathConfig " << pathConfig;
QTest::newRow("full") << pathConfig + QByteArray("full/");
QTest::newRow("addressbookonlyconfig") << pathConfig + QByteArray("addressbookonlyconfig/");
}
void ExportAddressbookJobInterfaceTest::exportAddressBookConfig()
......@@ -108,8 +107,7 @@ void ExportAddressbookJobInterfaceTest::exportAddressBookConfigAndResource_data(
{
QTest::addColumn<QByteArray>("configpath");
const QByteArray pathConfig(QByteArray(PIMDATAEXPORTER_DIR) + "/export/");
//QTest::newRow("test1resource") << pathConfig + QByteArray("test1resource/");
QTest::newRow("fullresource") << pathConfig + QByteArray("fullresource/");
QTest::newRow("addressbookconfigandresources") << pathConfig + QByteArray("addressbookconfigandresources/");
}
void ExportAddressbookJobInterfaceTest::exportAddressBookConfigAndResource()
......
......@@ -28,7 +28,6 @@ LogCreatingResource::LogCreatingResource(QObject *parent)
{
mTmpLogFile = new QTemporaryFile(this);
mTmpLogFile->open();
qDebug() << " mTmpLogFile "<< mTmpLogFile->fileName();
}
LogCreatingResource::~LogCreatingResource()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment